mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-20 00:12:50 +00:00
* Add optional tag generation and normalization to auto memory * Add tag index components and clean up temporary JSONL files * Preserve tag index state when reconciliation fails * Refactor and streamline application implementation * Fix pylint C1803 warnings in tag normalization tests * Document optional tag index configuration * Make tag index failures non-blocking and disable auto-memory tags * Add configurable tag indexing and tag listing * Add tag-filtered hybrid search with exact candidate ranking * Remove obsolete generated files * Rename tag index key to tag_key and reject reserved fields * Extract automatic tagging into a dedicated step * Restrict frontmatter updates to authorized keys * Refine tag filtering and automatic memory tagging * Require underscore-separated tags in auto-tag prompts - Forbid spaces in tags and require underscores (e.g. sam_altman) in both English and Chinese auto_tag prompts, with English examples switched to English entities (OpenAI, gold) - Drop prompt-string assertions superseded by the new tagging rule - Merge construction/runtime tag_key validation tests into one parametrized case * Make max_tags_per_file configurable in auto-tag step * Consolidate tag index tests * Fix search test fixture lint warnings * Align tag contracts and index health behavior * Fall back when tag index is unavailable --------- Co-authored-by: jinli.yl <jinli.yl@alibaba-inc.com>
52 lines
1.4 KiB
Python
52 lines
1.4 KiB
Python
"""Index steps."""
|
|
|
|
from ._source_format import normalize_posix_path
|
|
from .bm25_search import Bm25SearchStep
|
|
from .clear_paths import ClearPathsStep
|
|
from .clear_store import ClearStoreStep
|
|
from .draft import AddDraftStep, ReadAllDraftStep
|
|
from .graph_snapshot import GraphSnapshotStep
|
|
from .log_changes import LogChangesStep
|
|
from .list_tags import ListTagsStep
|
|
from .node_search import NodeSearchStep
|
|
from .init_changes import InitChangesStep
|
|
from .optimize_index import OptimizeIndexStep
|
|
from .reindex import ReindexStep
|
|
from .search import SearchStep
|
|
from .traverse import TraverseStep
|
|
from .update_changes import ChangeApplyStep, UpdateCatalogStep, UpdateIndexStep
|
|
from .vector_search import VectorSearchStep
|
|
from .wait_for_paths import WaitForPathsStep
|
|
from .watch_changes import (
|
|
DEFAULT_LOW_POWER_POLL_MS,
|
|
DEFAULT_WATCH_DEBOUNCE_MS,
|
|
DEFAULT_WATCH_STEP_MS,
|
|
WatchChangesStep,
|
|
)
|
|
|
|
__all__ = [
|
|
"AddDraftStep",
|
|
"Bm25SearchStep",
|
|
"ChangeApplyStep",
|
|
"ClearPathsStep",
|
|
"ClearStoreStep",
|
|
"DEFAULT_LOW_POWER_POLL_MS",
|
|
"DEFAULT_WATCH_DEBOUNCE_MS",
|
|
"DEFAULT_WATCH_STEP_MS",
|
|
"GraphSnapshotStep",
|
|
"InitChangesStep",
|
|
"LogChangesStep",
|
|
"ListTagsStep",
|
|
"NodeSearchStep",
|
|
"normalize_posix_path",
|
|
"ReadAllDraftStep",
|
|
"ReindexStep",
|
|
"OptimizeIndexStep",
|
|
"SearchStep",
|
|
"TraverseStep",
|
|
"UpdateCatalogStep",
|
|
"UpdateIndexStep",
|
|
"VectorSearchStep",
|
|
"WaitForPathsStep",
|
|
"WatchChangesStep",
|
|
]
|