๐Ÿ”ขAdd embeddings

Add custom text embeddings to ChromaDB

Vigil uses ChromaDB to store text embeddings. Any embeddings submitted to the collection specified in your configuration file will be used by the vectordb scanner when analyzing prompts.

The API server has an endpoint for submitting text to the database. The text will be embedded according to your conf/server.conf file at index time.

Add new text to the vector database

POST /add/texts

Submit text to the vector database (embedded at index time per config file)

Query Parameters




List of text strings



List of metadata dictionaries

  "ids": [
  "success": true
Example curl request
curl -X POST "" \
     -H "Content-Type: application/json" \    --data '{
         "texts": ["Hello, world!", "Blah blah."],
         "metadatas": [
             {"author": "John", "date": "2023-09-17"},
             {"author": "Jane", "date": "2023-09-10", "topic": "cybersecurity"}

Last updated