COGNIS) works well for most cases, but you can switch strategies for specific use cases.
Available Strategies
| Strategy | Description | Best For |
|---|---|---|
| COGNIS | Optimized hybrid pipeline (default). Vector + BM25 + RRF fusion with recency boost | General-purpose memory retrieval |
| FOUR_WAY_TEMPR | Semantic + BM25 + Graph with Hindsight pattern | Complex relationship queries |
| MULTI_QUERY_RAG | Generates 5 query variants + HyDE + RRF fusion | Ambiguous or broad queries |
| SINGLE_QUERY | Simple vector search without BM25 or fusion | Fast, straightforward lookups |
| SIMPLEMEM_ADAPTIVE | Adaptive k based on query complexity | Variable-complexity workloads |
| RFM_EVIDENCE_POOL | Iterative gap-filling retrieval | Research and evidence gathering |
Default Behavior
TheCOGNIS strategy is used by default for all search() and context() calls. It combines:
- Matryoshka vector search (256D shortlist → 768D rerank)
- BM25 keyword matching
- Reciprocal Rank Fusion (70% vector, 30% BM25)
- Recency boost with exponential decay
- Temporal query detection
The open-source
lyzr-cognis package uses the COGNIS (hybrid RRF) strategy only. Multiple retrieval strategies are a hosted-only feature.