AndaDB Documentation Hub

June 11, 2026 ยท View on GitHub

This directory is the technical documentation hub for the AndaDB workspace. Each document focuses on one layer of the stack, from the embedded database engine to schema derivation, index internals, object-store-backed persistence, the KIP protocol, and the Cognitive Nexus knowledge graph.

If you are new to the project, start here and then jump into the document that matches the layer you are working on.

What This Documentation Covers

The documents in this directory are intended to answer different kinds of questions:

  • What the core embedded database does and how to use it
  • How schemas, documents, and derive macros work
  • How exact-match, lexical, and vector indexes behave internally
  • How persistence is built on top of anda_object_store
  • How KIP is parsed and executed
  • How the Cognitive Nexus turns AndaDB into an AI memory graph

This directory is not meant to duplicate every crate README. For service-level deployment instructions, environment variables, and binary-specific usage, also check the crate READMEs under rs/.

Embedded database users

If you want to embed AndaDB directly into a Rust application:

  1. anda_db.md
  2. anda_db_schema.md
  3. anda_db_derive.md
  4. anda_db_btree.md
  5. anda_db_tfs.md
  6. anda_db_hnsw.md
  7. anda_object_store.md

Knowledge-graph and agent-memory users

If you are building higher-level AI memory or KIP-powered systems:

  1. anda_kip.md
  2. anda_cognitive_nexus.md
  3. anda_db.md
  4. anda_object_store.md

Storage and deployment implementers

If your main concern is persistence, durability, encryption, or portability across storage backends:

  1. anda_object_store.md
  2. anda_db.md
  3. anda_db_btree.md
  4. anda_db_tfs.md
  5. anda_db_hnsw.md

Documentation Map

DocumentLayerWhat it CoversRead It When You Need To
anda_db.mdCore databaseDatabase lifecycle, collections, indexing model, query model, storage integration, durability, recoveryUnderstand the main embedded database API and its operational behavior
anda_db_schema.mdType systemField types, field values, schemas, documents, resource model, serializationDesign schemas, validate document shapes, or inspect on-disk typing rules
anda_db_derive.mdCode generationAndaDBSchema, FieldTyped, attributes, type inference, field_type DSLGenerate schemas from Rust structs and understand macro behavior
anda_db_btree.mdExact/range retrievalInverted B-tree design, range queries, bucket persistence, correctness notesWork on filtering, exact lookup, uniqueness, or bucket compaction
anda_db_tfs.mdFull-text retrievalBM25 algorithm, tokenizer pipeline, bucket sharding, persistence layoutWork on lexical search, text ranking, or tokenizer behavior
anda_db_hnsw.mdVector retrievalHNSW ANN index, bf16 vectors, insertion pipeline, persistence artifactsWork on embedding search and vector-index tuning
anda_object_store.mdStorage substrateMetaStore, EncryptedStore, portable conditional writes, AES-256-GCM chunked encryptionBuild portable or encrypted object-store-backed persistence
anda_kip.mdProtocol layerKIP parser, AST, request/response model, executor interface, error codesIntegrate LLM-facing protocol handling or implement a backend
anda_cognitive_nexus.mdKnowledge graph runtimeReference KIP executor, concept/proposition model, graph execution, bootstrap flowBuild or debug the AI memory brain on top of AndaDB
testing.mdQuality assuranceCrash-consistency harness, fault injection, property tests, fuzzing, recall floors, format fixturesAdd tests for a new feature or understand the durability test contract

Layered View of the Stack

Application / Agent Runtime
  -> anda_kip                    protocol, AST, request/response, executor trait
  -> anda_cognitive_nexus        reference KIP executor and knowledge graph
  -> anda_db                     embedded storage and retrieval core
     -> anda_db_schema           schema and document model
     -> anda_db_derive           derive macros for schema generation
     -> anda_db_btree            exact and range index
     -> anda_db_tfs              BM25 full-text index
     -> anda_db_hnsw             HNSW vector index
     -> anda_object_store        portable metadata and encryption wrappers
     -> object_store             backend abstraction for local and cloud storage

This structure is deliberate:

  • anda_db is the embedded storage and retrieval core
  • anda_kip is the protocol layer for model-friendly knowledge interaction
  • anda_cognitive_nexus is the reference graph-memory system built on top of both

Service-Layer Documentation

Some operational components are documented primarily in their own crate READMEs rather than in this directory.

Use these when you need deployment guidance:

  • rs/anda_db_server/README.md for the core database HTTP server
  • rs/anda_cognitive_nexus_server/README.md for the KIP HTTP/JSON-RPC server
  • rs/anda_db_shard_proxy/README.md for shard routing and multi-tenant proxying

Practical Entry Points

If you need a fast answer to a concrete task, start with the closest document:

Relation to the Project Root README

The project root README.md is the product-level overview:

  • what AndaDB is
  • what the workspace crates are for
  • how to get started quickly
  • where to find the main examples

This docs/README.md is the documentation index for deeper technical study.