经 AI Skill Hub 精选评估,CortexDB 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
CortexDB 是一款基于 Go 开发的开源工具,专注于 AI、Go、知识图谱 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
CortexDB 是一款基于 Go 开发的开源工具,专注于 AI、Go、知识图谱 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/liliang-cn/cortexdb@latest # 方式二:从源码编译 git clone https://github.com/liliang-cn/cortexdb cd cortexdb go build -o cortexdb . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/liliang-cn/cortexdb/releases
# 查看帮助 cortexdb --help # 基本运行 cortexdb [options] <input> # 详细使用说明请查阅文档 # https://github.com/liliang-cn/cortexdb
# cortexdb 配置说明 # 查看配置选项 cortexdb --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CORTEXDB_CONFIG="/path/to/config.yml"
A pure-Go, single-file AI memory and knowledge graph. One SQLite file holds vectors, hybrid RAG search, scoped agent memory, an RDF/SPARQL knowledge graph, a Palantir-style ontology, and 60+ agent tools — embedded in your Go program, or installed as a shared brain for Claude Code / Codex. Works with no embedder (lexical mode, no API key) or any OpenAI-compatible embeddings endpoint. No service to run.
go get github.com/liliang-cn/cortexdb/v2

<sub>serve_graph_3d on a real shared brain — the one behind an OpenClaw cluster: 2000 entities, 5953 relations, node types the agents wrote themselves. Served from inside the MCP server handling the calls, so the graph lights up as tools touch it. (Orbit, as MP4)</sub>
db, _ := cortexdb.Open(cortexdb.DefaultConfig("brain.db"))
defer db.Close()
brain := db.KnowledgeMemory()
_, _ = brain.Remember(ctx, cortexdb.KnowledgeMemoryRememberRequest{Content: "Alice prefers tabs.", Scope: "user"})
rec, _ := brain.Recall(ctx, cortexdb.KnowledgeMemoryRecallRequest{Query: "what does Alice prefer?"})
fmt.Println(rec.ContextPack.Text) // paste-ready context pack with source attribution
Recall / Remember / Reflect / Consolidate / PromoteToKnowledge / context packs; fused retrieval across episodic memory, durable knowledge, and GraphRAG chunks; relational answers returned as graph facts (Alice —uses→ Apollo) read from edges, reliable even with no embedder; deterministic no-LLM extract_conversation; memories can carry inline entities/relations so one call stores and graphs them.cortex_query: vector / lexical / hybrid / graph prefetch lanes fused by RRF, weighted RRF, or DBSF, with metadata filters and per-source score debugging; an Authorize callback gates every candidate (RBAC/ABAC at the retrieval layer); pluggable reranker.QuerySource, without becoming the storage: it names candidate ids, the brain still owns the content, and a stale id is dropped rather than fabricated._source, _chunk, _producer, and a _grade from a closed set — verified (a named person kept it), self_consistent (derived from something that stated it), asserted (a model or a person said so, unchecked), held, refused (the vocabulary declined it, with why). contract_tally answers what the whole shelf stands on, counting the untagged rows too; contract_needs_attention lists what wants a person; fact_provenance cites the text a fact came from. Producers call ValidateContract before they write. alchemy writes the contract for every graph it loads here — the one sink of its six that does.postgres:// DSN moves the same brain to PostgreSQL + pgvector, with vectors, hybrid search, memory and the RDF graph all running on either. Compile-time backend registry, not a plugin system (storage is the hot path). 104 opt-in PostgreSQL tests, mostly parity: one test body, both databases, same answer required.apply_inference materializes two-hop relation compositions with provenance; entities track asserting documents, and delete_document_graph is deletion shaped like ingest.search_around), governed action types with audit trail, generated typed agent tools, and a breaking-change schema diff; strict or vocabulary enforcement.memoryflow (transcript → recall → wake-up → promotion), graphflow (corpus → graph → HTML report), importflow (CSV / SQL dumps / live Postgres-MySQL → RAG + KG), connector (PII masking, signed plans, reversible vault, CDC sync).render_graph_html, an interactive graph view.pkg/eval runs a labeled query set through the real retrieval path with recall@k / nDCG regression floors in CI; FTS5 / SPARQL / SQL-dump parsers are fuzz-tested.高性能AI内存和知识图谱库
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:CortexDB 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | cortexdb |
| 原始描述 | 开源AI工具:A pure-Go, single-file AI memory and knowledge graph library. 。⭐38 · Go |
| Topics | AIGo知识图谱内存库 |
| GitHub | https://github.com/liliang-cn/cortexdb |
| License | MIT |
| 语言 | Go |
收录时间:2026-06-09 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。