Documentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
Initialization
- Hosted (lyzr-adk)
- Open Source (lyzr-cognis)
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | $LYZR_API_KEY | Lyzr API key |
env | str | ServiceURLs | "prod" | Environment: "prod", "dev", "local", or custom |
timeout | int | 30 | Request timeout in seconds |
Multi-Tenant Scoping
Every Cognis operation uses scoping identifiers to isolate memories. This works the same in both versions.| Identifier | Purpose | Example |
|---|---|---|
owner_id | Scope to a user/tenant | "user_alice" |
agent_id | Scope to an agent | "support_bot" |
session_id | Scope to a conversation | "sess_abc123" |
At least one of
owner_id, agent_id, or session_id must be provided for every operation.Search Tuning (Open Source)
The open-source version exposesCognisConfig for fine-grained search tuning. These defaults were optimized from ablation studies on the LoCoMo benchmark.
Full CognisConfig Reference
| Field | Default | Description |
|---|---|---|
vector_weight | 0.70 | Weight for vector search in RRF fusion |
bm25_weight | 0.30 | Weight for BM25 keyword search |
rrf_k | 10 | RRF constant (higher = smoother rank distribution) |
similarity_threshold | 0.3 | Minimum similarity to include results |
shortlist_size | 200 | 256D candidates before 768D reranking |
recency_boost_weight | 0.25 | Recency boost strength |
recency_half_life_seconds | 120.0 | Recency decay half-life |
enable_temporal_decay | True | Time-based relevance decay |
enable_temporal_query_detection | True | Detect “last week”, “yesterday” queries |
embedding_model | "gemini/gemini-embedding-2-preview" | Embedding model via LiteLLM |
embedding_full_dim | 768 | Full-dimension embedding size |
embedding_small_dim | 256 | Shortlist embedding size |
llm_model | "gpt-4.1-mini" | LLM for fact extraction |
update_similarity_threshold | 0.85 | Threshold for updating vs creating new memory |
add_similarity_threshold | 0.70 | Threshold below which new memory is always created |
enable_immediate_recall | True | 256D vector index for raw messages |
immediate_recall_ttl_hours | 48 | TTL for immediate recall entries |