HelpFeatures & API

Vector DB Setup

Crafted includes a built‑in vector database for semantic search.

  1. Create a Collection – In the dashboard, go to Data → Vector DB and click New Collection.
  2. Configure dimensions – specify the embedding size (e.g., 1536 for OpenAI embeddings).
  3. Add documents – upload files or use the API endpoint
    Snippet
    /api/vector-db
    to upsert vectors.
  4. Query – use the SDK method
    Snippet
    vectorDB.search(collectionId, queryVector)
    .

For large datasets, consider enabling sharding in the collection settings.

Was this article helpful?
Return to Dashboard