-
Notifications
You must be signed in to change notification settings - Fork 45
fix: forward hybrid/keyword search params through all search paths and update docs #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
07a9ce1
9178c57
67ae703
e47412f
4ac1b79
6d175bf
eb2e92e
436b442
49008ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,14 +4,14 @@ Long-term memory is **persistent**, **cross-session** storage designed for knowl | |
|
|
||
| ## Overview | ||
|
|
||
| Long-term memory provides persistent storage that survives server restarts and session expiration. It's optimized for semantic search, deduplication, and rich metadata to enable intelligent retrieval of relevant information. | ||
| Long-term memory provides persistent storage that survives server restarts and session expiration. It's optimized for semantic, keyword, and hybrid search, deduplication, and rich metadata to enable intelligent retrieval of relevant information. | ||
|
|
||
| | Feature | Details | | ||
| |---------|---------| | ||
| | **Scope** | Cross-session, persistent | | ||
| | **Lifespan** | Permanent until manually deleted | | ||
| | **Storage** | Redis with vector indexing | | ||
| | **Search** | Semantic vector search | | ||
| | **Search** | Semantic, keyword, and hybrid search | | ||
| | **Capacity** | Unlimited (with compaction) | | ||
| | **Use Case** | Knowledge base, user preferences | | ||
| | **Indexing** | Vector embeddings + metadata | | ||
|
||
|
|
@@ -126,17 +126,38 @@ POST /v1/long-term-memory/search | |
|
|
||
| ## Search Capabilities | ||
|
|
||
| Long-term memory provides powerful search features: | ||
| Long-term memory supports three search modes: **semantic** (vector similarity), **keyword** (full-text matching), and **hybrid** (combined). | ||
|
|
||
| ### Semantic Vector Search | ||
| ### Semantic Search (Default) | ||
| ```json | ||
| { | ||
| "text": "python programming help", | ||
| "search_mode": "semantic", | ||
| "limit": 10, | ||
| "distance_threshold": 0.8 | ||
| } | ||
| ``` | ||
|
|
||
| ### Keyword Search | ||
| ```json | ||
| { | ||
| "text": "TechCorp engineer", | ||
| "search_mode": "keyword", | ||
| "limit": 10 | ||
| } | ||
| ``` | ||
|
|
||
| ### Hybrid Search | ||
| Combines vector similarity with full-text keyword matching. Use `hybrid_alpha` to control the balance (0.0 = pure keyword, 1.0 = pure semantic, default 0.7). | ||
| ```json | ||
| { | ||
| "text": "python programming help", | ||
| "search_mode": "hybrid", | ||
| "hybrid_alpha": 0.7, | ||
| "limit": 10 | ||
| } | ||
| ``` | ||
|
|
||
| ### Advanced Filtering | ||
| ```json | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.