feat(knowledge): memory graph semantic search — query processor and hybrid scoring (#3384)#3609
Closed
mrveiss wants to merge 2 commits intoDev_new_guifrom
Closed
feat(knowledge): memory graph semantic search — query processor and hybrid scoring (#3384)#3609mrveiss wants to merge 2 commits intoDev_new_guifrom
mrveiss wants to merge 2 commits intoDev_new_guifrom
Conversation
…efix, config model name, UTC datetime (#3384)
Owner
Author
Review fixes applied ✓
All 58 tests passing. |
This was referenced Apr 6, 2026
tech-debt(knowledge): naive datetime.now() calls throughout codebase — should use timezone.utc
#3613
Closed
mrveiss
added a commit
that referenced
this pull request
Apr 6, 2026
…3609) - autobot-backend: redis.service → redis-stack-server.service (was silently ignored by systemd); add Wants= + network-online.target - autobot-celery: same redis fix; keep After=autobot-backend.service - autobot-slm-backend: add redis-stack-server + postgresql dependencies (had none — could race both on every boot) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
Author
|
Superseded by #3616 which consolidates all memory graph code into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3384
Implements Phase 1 (core infrastructure) and Phase 2 (hybrid scoring) from
docs/design/MEMORY_GRAPH_SEMANTIC_SEARCH.md.Summary
query_processor.py—MemoryGraphQueryProcessor: natural language query detection, intent extraction (entity type filters, time range, status), Redis FT.SEARCH query builder, result parsing and rankinghybrid_scorer.py—HybridScorer: cosine similarity (embedding-based), BM25 text scoring, configurable weight blend (semantic_weight+keyword_weight), graceful degradation to keyword-only when embeddings unavailable__init__.py— Package re-exports public APITests
58 unit tests, all passing (
query_processor_test.py). Redis and embeddings fully mocked.Design decisions
semantic_weight × cosine_sim + keyword_weight × bm25(weights configurable, default 0.7/0.3)Out of scope (Phases 3–5)
Context integration, caching, query suggestions, and search analytics will be addressed in follow-up issues.