backend/docs/MEMORY_IMPROVEMENTS_SUMMARY.md
This summary is synchronized with the main branch implementation.
TF-IDF/context-aware retrieval is planned, not merged yet.
tiktoken in memory injection.<memory> prompt content.max_injection_tokens.current_context parameter for format_memory_for_injection.similarity + confidence).Earlier docs described TF-IDF behavior as already implemented, which did not match code in main.
This mismatch is tracked in issue #1059.
def format_memory_for_injection(memory_data: dict[str, Any], max_tokens: int = 2000) -> str:
No current_context argument is currently available in main.
packages/harness/deerflow/agents/memory/prompt.pypackages/harness/deerflow/agents/lead_agent/prompt.pybackend/tests/test_memory_prompt_injection.py