Request AI
This section covers all available AI operations for the Node.js SDK when interacting with Ahnlich AI.
Ahnlich AI is the semantic layer that provides:
- Automatic embedding generation using AI models
- Text and image similarity search
- Semantic understanding without manual vector management
Available Operationsβ
Server Operationsβ
- Ping - Health check
- Info Server - Get server information
Store Operationsβ
- List Stores - List all AI stores
- Get Store - Get details of a specific AI store
- Create Store - Create a new AI store
- Drop Store - Delete an AI store
Data Operationsβ
- Set - Insert entries (auto-generates embeddings)
- GetSimN - Semantic similarity search
- Get By Predicate - Filter entries by metadata
- Delete Key - Delete entries by input
Index Operationsβ
- Create Predicate Index - Create metadata index
- Drop Predicate Index - Remove metadata index
- Create Non Linear Algorithm Index - Create KDTree/HNSW index
- Drop Non Linear Algorithm Index - Remove KDTree/HNSW index
Key Differences from DBβ
- Automatic embeddings: You provide text/images, AI generates vectors
- Semantic search: Search by meaning, not exact vectors
- Model selection: Choose from supported AI models (MiniLM, ResNet, CLIP, etc.)