01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363

Khora

A Python library for creating knowledge repositories that ingest unstructured and structured multi-source data and expose a single query substrate, built for integrating into long-horizon AI agents.

Bash
> pip install khora

Three storage types

Khora structures extracted data across graph, vector, and relational storage, so different kinds of questions can use the right retrieval path.

Query-aware hybrid retrieval

Khora’s default VectorCypher engine infers the best way to answer each query, using semantic search, graph traversal, keyword search, exact matching, and source-aware filtering where each is useful.

Data consolidation

Khora includes a consolidation phase that helps the repository stay clean as more data is ingested, reducing duplication and improving the quality of future retrieval.

Storage backends

Storage backends

Vector search is powerful, but it only covers part of what agents need to query.

“What did this customer say last week?”
needs temporal awareness.

“How is this person connected to that project?”
needs graph traversal.

“Where was this exact policy mentioned?”
needs lexical recall.

“What evidence supports this answer?”
needs source-aware retrieval.

“What changed between these two updates?”
needs structured history.

Khora is built around the idea that a useful knowledge repository needs more than one storage pattern. It structures ingested data across graph, vector, and relational storage, then exposes a single query layer over all of it.

At ingestion time, Khora turns raw source data into queryable knowledge artifacts. Documents can be staged and deduplicated. Text can be chunked and embedded. Entities and relationships can be extracted. Events, facts, timestamps, and source metadata can be preserved.

This allows to create a unified repository that can support semantic search, relationship traversal, exact matching, time-aware queries, and evidence-backed responses from the same underlying system.

Temporal context

Temporal context

Khora’s temporal-aware memory gives agents a real sense of when knowledge happened, changed, or expired, combining semantic, keyword, temporal, and entity recall with triple timestamps, recency-aware scoring, and forgetting-curve decay.

It is built for long-running conversations, support histories, meeting streams, and evolving knowledge bases where agents need to answer not just “What do we know?” but “What was true then, what changed, and what still matters now?”

Retrieval engine

Retrieval engine

We are shipping Khora with the our first retrieval engine: VectorCypher that it built as a modern approach to GraphRAG and that is purposely built to be able to query on large knowledge repositories that contain both structured and unstructured data from multiple sources.

The VectorCypher has a query-aware routing system that depending the query it chooses the right retrieval method.

Integrating Khora

Integrating Khora

Khora was intentionally built as a library so that it can be easier to integrate into your existing AI systems or workflows.

You can integrate it into your MCP or existing agent SDKs.

# knowledge_repo.py

import asyncio
from khora import Khora

async def main() -> None:
    async with Khora(run_migrations=True) as kb:
        ns = await kb.create_namespace()

        await kb.remember(
            "Marie Curie won the Nobel Prize in Physics in 1903.",
            namespace=ns.namespace_id,
            entity_types=["PERSON", "ORGANIZATION", "CONCEPT", "LOCATION", "EVENT"],
            relationship_types=["RELATES_TO", "PART_OF", "MENTIONS"],
        )

        result = await kb.recall(
            "What did Curie win?",
            namespace=ns.namespace_id,
        )

        for chunk in result.chunks:
            print(chunk.content, chunk.score)

asyncio.run(main())

Use cases

Use cases

Research Assistants

Khora helps research agents move beyond document Q&A. It can organize papers, notes, claims, entities, events, citations, and relationships into a memory layer that supports deeper retrieval, comparison, and synthesis.

Enterprise Knowledge Graphs

Khora extracts and connects entities, relationships, facts, and events from raw sources, giving agents a structured memory layer over enterprise knowledge. The result is retrieval that can follow meaning, relationships, keywords, and time.

Data consolidation

Data consolidation

As more data is ingested the repository needs to stay organized.

The same entity may appear under slightly different names. Similar facts may be repeated across sources. Old events may become less relevant. Relationships may need to be merged, corrected, or compacted.

Khora includes an optional data consolidation phase that inspects the repository and proposes maintenance work.

This can include:

Agentic workflow

Agentic workflow

Khora is built as a library that can be embedded directly into agent workflows. It is designed to work with production-ready infrastructure, including PostgreSQL with pgvector, and Neo4j for graph-heavy workloads.

It also integrates with popular agent frameworks, including CrewAI, LangGraph, Google ADK, OpenAI Agents SDK, and LlamaIndex.

Agentic SDK Documentation

CrewAI Google ADK