Skip to content

Improvement/memory update#339

Open
CraftOS-dev wants to merge 4 commits into
V1.4.0from
improvement/memory-update
Open

Improvement/memory update#339
CraftOS-dev wants to merge 4 commits into
V1.4.0from
improvement/memory-update

Conversation

@CraftOS-dev

Copy link
Copy Markdown
Owner

What and Why:
Previously, the memory system assign incorrect relevance score when querying memory. This caused the memory retrieval to be inaccurate. To add on, the query used the conversation history, rather than focusing on user's message. This caused the issue when agent message are also used to query memory, contaminating the context/retrieved memory.

Features/items changed:

  • Use and aggregate user message/task description for memory retrieval.
  • New weighed equation to calculate relevancy score (embedding + BM25)
  • Added BM25 for better keyword/relevancy scoring
  • Upgraded the default ChromaDB embedding model to a better model

@CraftOS-dev CraftOS-dev requested a review from makiroll1125 June 22, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant