#vector-search #embedding #vector-database

anda_db

Anda DB is a Rust library designed as a specialized database for AI Agents, focusing on knowledge & memory

60 releases

Uses new Rust 2024

0.7.28 Apr 29, 2026
0.7.24 Mar 26, 2026
0.7.2 Dec 31, 2025
0.7.1 Sep 13, 2025
0.4.4 Jul 24, 2025

#369 in Database interfaces

Download history 40/week @ 2026-01-22 13/week @ 2026-01-29 1/week @ 2026-02-05 11/week @ 2026-02-19 4/week @ 2026-03-05 31/week @ 2026-03-12 27/week @ 2026-03-19 38/week @ 2026-03-26 35/week @ 2026-04-02 56/week @ 2026-04-09 43/week @ 2026-04-16 60/week @ 2026-04-23 180/week @ 2026-04-30 127/week @ 2026-05-07

419 downloads per month
Used in 10 crates (5 directly)

MIT license

1MB
17K SLoC

anda_db

anda_db is the embedded database core of the AndaDB workspace. It gives Rust applications schema-aware collections, object-store-backed persistence, and three built-in retrieval modes: B-Tree for exact and range filters, BM25 for full-text search, and HNSW for vector similarity search.

What This Crate Provides

  • Database lifecycle management through AndaDB
  • Schema-aware collections and document CRUD
  • B-Tree, BM25, and HNSW index integration
  • Hybrid search with reciprocal-rank fusion reranking
  • Object-store-backed persistence with checkpoints, flushing, and recovery
  • Lightweight metadata extensions at database and collection scope

When to Use It

Use anda_db when you want:

  • an embedded database inside a Rust service
  • durable AI memory without operating an external database service
  • structured, lexical, and semantic retrieval in one collection model
  • local development on filesystem or in-memory storage, with optional cloud object storage in production

Getting Started

Add the crate to your project:

[dependencies]
anda_db = { version = "0.7", features = ["full"] }
object_store = { version = "0.13", features = ["fs"] }
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }

For a complete runnable example, see:

  • examples/db_demo.rs
  • cargo run -p anda_db --example db_demo --features full

For a product-level introduction, see the workspace root README.

Technical Reference

Deep technical documentation for this crate lives in:

  • anda_db_schema for field types, schemas, and documents
  • anda_db_derive for AndaDBSchema and FieldTyped
  • anda_db_btree for exact and range indexing
  • anda_db_tfs for BM25 full-text search
  • anda_db_hnsw for vector search
  • anda_object_store for metadata and encryption wrappers over object_store

License

MIT. See LICENSE.

Dependencies

~56MB
~806K SLoC