Request DB
This section covers all available DB (Database) operations for the Node.js SDK when interacting with Ahnlich DB.
Ahnlich DB is the core vector storage engine that provides:
- Vector storage with configurable dimensions
- Similarity search using various algorithms
- Metadata filtering with predicates
- Non-linear indexing (HNSW) for faster searches
Available Operations
Server Operations
- Ping - Health check
- Info Server - Get server information
- List Connected Clients - List all connected clients
Store Operations
- List Stores - List stores in a schema
- Get Store - Get details of a specific store
- Create Store - Create a new store
- Drop Store - Delete a store
Data Operations
- Set - Insert or update entries
- Upsert - Update a single entry matching a predicate
- Get Key - Retrieve entries by key
- GetSimN - Find N most similar entries
- Get By Predicate - Filter entries by metadata
- Delete Key - Delete entries by key
- Delete Predicate - Delete entries matching a predicate
Index Operations
- Create Predicate Index - Create metadata index
- Drop Predicate Index - Remove metadata index
- Create Non Linear Algorithm Index - Create HNSW index
- Drop Non Linear Algorithm Index - Remove HNSW index