Skip to main content

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

Store Operations

Data Operations

  • Set - Insert entries (auto-generates embeddings)
  • Upsert - Update a single entry matching a predicate
  • GetSimN - Semantic similarity search
  • Get By Predicate - Filter entries by metadata
  • Delete Key - Delete entries by input

Index Operations

Key Differences from DB

  • Automatic embeddings: You provide text, images, or audio, AI generates vectors
  • Semantic search: Search by meaning, not exact vectors
  • Model selection: Choose from supported AI models (MiniLM, ResNet, CLIP, etc.)