ReMe/reme/steps/evolve/__init__.py
xyf2020 06fb46fa48
feat(tags): add configurable tag indexing and filtered hybrid search (#530)
* 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>
2026-09-10 18:01:09 +08:00

40 lines
1 KiB
Python

"""Evolve steps."""
from ._evolve import now, passthrough_response
from .auto_image_resource import AutoImageResourceStep
from .auto_memory import AutoMemoryStep
from .auto_tag import AutoTagStep
from .auto_memory_cc import AutoMemoryCCStep
from .auto_resource import AutoResourceStep
from .auto_text_resource import AutoTextResourceStep
from .compressor import CompressorStep
from .dream import DreamExtractStep, DreamFinishStep, DreamIntegrateStep
from .proactive import (
ProactiveAgendaStep,
ProactiveExtractStep,
ProactiveFinishStep,
ProactivePlanStep,
ProactiveStep,
ProactiveTopicsStep,
)
__all__ = [
"now",
"AutoImageResourceStep",
"passthrough_response",
"AutoMemoryStep",
"AutoTagStep",
"AutoMemoryCCStep",
"AutoResourceStep",
"AutoTextResourceStep",
"CompressorStep",
"DreamExtractStep",
"DreamFinishStep",
"DreamIntegrateStep",
"ProactiveAgendaStep",
"ProactiveExtractStep",
"ProactiveFinishStep",
"ProactivePlanStep",
"ProactiveStep",
"ProactiveTopicsStep",
]