cortexdb

AI memory and a knowledge graph in one SQLite file. Pure Go: vectors, RAG, agent memory, RDF/SPARQL, Cypher, 80+ MCP tools. Works without an embedding model

A new way for AI to search for data
View on GitHub
473GitHub stars
837commits on main
27forks
v2.141.0latest release, 2026-10-29

Go 95.1%, JavaScript 1.5%, Rust 1.3%, Python 1.2% · created 2025-08-07 · last push 2026-10-29

What XERJ indexed

Snapshot

Whole repository

The whole repository at commit e0ee5fd3b3 (2026-10-18). main is 104 commits ahead.

Selected work

Lauro Foletti
@lfoletti

“a scope may list several values per field”. 7 files, 309 lines in pkg/authz, pkg/rpcserver.

Licence

The repository

MIT

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-25. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

embeddingsllmvector-databasevector-searchragsqlitehindsightagent-memory

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported MIT for liliang-cn/cortexdb on 2026-10-29, and the LICENSE file at commit e0ee5fd3b3 was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

Lauro Foletti (@lfoletti) has 1 selected repository on the hub.

Using XERJ with cortexdb

The prompt

Paste it into your AI agent. It clones liliang-cn/cortexdb at the pinned commit and indexes it on your machine.

Search the GitHub repository liliang-cn/cortexdb with XERJ (https://hub.xerj.org/corpus/liliang-cn--cortexdb).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/liliang-cn/cortexdb cortexdb && git -C cortexdb checkout e0ee5fd3b30d6a99c9b9c22aa35759f3fa95239c
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./cortexdb --url http://127.0.0.1:9200 --prefix cortexdb --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-29. Selected work and consent: the XERJ registry.