Skip to main content
POST
/
api
/
v1
/
search
/
chroma
Semantic search — Chroma
curl --request POST \
  --url http://localhost:8080/api/v1/search/chroma \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "query": "<string>",
  "collection": "financial_documents",
  "embeddingSecretName": "<string>",
  "chromaSecretName": "<string>",
  "topK": 5
}
'
{
  "results": [
    {
      "text": "<string>",
      "chunk_index": 123,
      "source_pipeline": "<string>",
      "filename": "<string>",
      "_score": 123
    }
  ],
  "count": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.datris.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Optional API key for authentication (enabled via application.yaml)

Body

application/json
query
string
required

Natural language search query

collection
string
default:financial_documents

Chroma collection name

embeddingSecretName
string

Optional override of the embedding Vault secret. Defaults to the server-level ai.embedding.secretName (oss/embedding), which is seeded automatically by vault-init.sh. The secret is self-describing — provider, endpoint, model, apiKey, and (optionally) version.

chromaSecretName
string

Vault secret name for Chroma connection

topK
integer
default:5

Response

Search results

results
object[]
count
integer