You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: merge main into feat/native-agent-harness, resolve conflicts
Content conflicts resolved:
- README.md: keep branch's extended examples list
- vektori/client.py: keep skip_extraction param, adopt result= style from main
- vektori/retrieval/scoring.py: use already-parsed meta dict (main's approach)
- tests/unit/test_factory.py: combine both import sets and test suites
Restored files dropped by auto-merge:
- vektori/context.py (AgentContextLoader used by agent harness)
- ChatModelProvider + ChatCompletionResult in vektori/models/base.py
- LiteLLMChatModel in vektori/models/litellm_provider.py
- OpenAIChatModel in vektori/models/openai.py
- CHAT_REGISTRY + create_chat_model in vektori/models/factory.py
Most memory systems compress conversations into entity-relationship triples. You get the answer, but you lose the texture, the reasoning, the trajectory. Vektori uses a **three-layer sentence graph** so agents don't just recall preferences, they understand how things got there.
28
+
## Why Vektori
29
+
30
+
Building agents that actually remember people is harder than it looks:
31
+
32
+
-**Facts aren't enough.** Knowing a user prefers WhatsApp is different from knowing they've asked three times and are getting frustrated. Most systems give you the what, not the why or how it changed.
33
+
-**Patterns stay invisible.** Spotting that someone's tone has been shifting across sessions requires more than point-in-time retrieval — you need to see the trajectory.
34
+
-**Context overhead explodes.** Stuffing raw conversation history into every prompt doesn't scale. You need structure, not just storage.
35
+
36
+
Vektori solves this with a **three-layer sentence graph**. Agents don't just recall preferences — they understand how things got there.
†Zep's self-reported score is 75%; independently re-evaluated at 58%. Scores across systems are not always directly comparable — model choice (GPT-4o vs GPT-4.1-mini vs local) significantly affects results.
64
+
65
+
We used gemini-2.5-flash-lite because of token cost, better models imporve accuracy a lot. Benchmarks at L1 level
41
66
42
-
Still improving. Run your own in [`/benchmarks`](benchmarks/).
67
+
On LoCoMo and longmemEval, **the retrieved context contains the answer in 95% of questions** — the gap to 66% is a synthesis problem, not a retrieval one. Actively working on closing it, exploring RL.
68
+
69
+
Still improving — PRs and evals welcome. Run your own: [`/benchmarks`](benchmarks/)
43
70
44
71
---
45
72
@@ -111,8 +138,8 @@ Pick how deep you want to go.
111
138
| Depth | Returns |~Tokens | When to use |
112
139
|-------|---------|---------|-------------|
113
140
|`l0`| Facts only | 50-200 | Fast lookup, agent planning, tool calls |
114
-
|`l1`| Facts + Episodes | 200-500|**Default.** Full answer with context |
115
-
|`l2`| Facts + Episodes + raw Sentences | 1000-3000 | Trajectory analysis, full story replay |
141
+
|`l1`| Facts + Episodes + source Sentences | 300-800|**Default.** Full answer with context |
142
+
|`l2`| Facts + Episodes + Sentences + ±N context window| 1000-3000 | Trajectory analysis, full story replay |
| Default backend | Requires external DB | SQLite, zero config |
328
-
| Fully local / offline | No | Yes (Ollama, BGE-M3, SentenceTransformers) |
329
-
| License | Partial OSS | Apache 2.0 |
368
+
# NVIDIA LLM models (nvidia/ prefix auto-added)
369
+
v = Vektori(extraction_model="nvidia:llama-3.3-nemotron-super-49b-v1")
330
370
331
-
Mem0 and Zep are solid tools. But they compress conversations into triples, so you get the *what* but not the *why* or how it changed over time. That matters when you're building agents that need to reason about a person's trajectory, not just their current state.
371
+
# Third-party models hosted on NVIDIA NIM (use full path)
372
+
v = Vektori(extraction_model="nvidia:z-ai/glm5")
332
373
374
+
```
333
375
---
334
376
335
377
## Contributing
336
378
337
-
Issues, PRs, and ideas welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
379
+
Vektori is early and there's a lot of ground to cover. If you're building agents that need memory, your real-world feedback is the most valuable thing you can contribute.
380
+
381
+
- Found a bug or an edge case? [Open an issue](https://github.com/vektori-ai/vektori/issues)
382
+
- Have an idea or want to discuss direction? [Start a discussion](https://github.com/vektori-ai/vektori/discussions)
383
+
- Want to contribute code? See [CONTRIBUTING.md](CONTRIBUTING.md)
[](https://www.star-history.com/#vektori-ai/vektori&type=timeline)
0 commit comments