application.yaml.
Common Parameters
All search endpoints share these parameters:| Field | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | Natural language search query | |
embeddingSecretName | string | No | ai.embedding.secretName | 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. |
topK | integer | No | 5 | Number of results to return |
Common Response Format
All search endpoints return:_score field indicates relevance (higher is more similar, normalized to 0–1 where applicable).
Search Qdrant
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
collection | string | No | documents | Qdrant collection name |
qdrantSecretName | string | No | Server default | Vault secret (must contain host, optionally port, apiKey). Uses server default if omitted. |
Search Weaviate
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
className | string | No | Documents | Weaviate class name (PascalCase) |
weaviateSecretName | string | No | Server default | Vault secret (must contain host, optionally port, scheme, apiKey). Uses server default if omitted. |
Search Milvus
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
collection | string | No | documents | Milvus collection name |
milvusSecretName | string | No | Server default | Vault secret (must contain host, optionally port, apiKey). Uses server default if omitted. |
Search Chroma
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
collection | string | No | documents | Chroma collection name |
chromaSecretName | string | No | Server default | Vault secret (must contain host, optionally port). Uses server default if omitted. |
Search pgvector
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | No | documents | PostgreSQL table name |
schema | string | No | public | PostgreSQL schema |
postgresSecretName | string | No | Server default | Vault secret (must contain jdbcUrl, optionally username, password). Uses server default if omitted. |
Natural Language Query
Ask a question in plain English — the AI generates and executes a SQL query against PostgreSQL.| Field | Type | Required | Default | Description |
|---|---|---|---|---|
question | string | Yes | Natural language question | |
table | string | Yes | Target table name | |
schema | string | No | public | PostgreSQL schema |
database | string | No | datris | PostgreSQL database |
limit | integer | No | 100 | Maximum rows to return |
AI Answer (RAG)
Answer a question using AI based on provided context — typically used after a vector search to generate a natural language answer from retrieved chunks.| Field | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The question to answer |
context | string | Yes | Context text (e.g., concatenated search results) |
Vault Secret Structure
Embedding Secret
Self-describing — the resolver readsprovider, endpoint, model, apiKey, and (optionally) version from inside the secret. See AI Configuration.
bge-m3 and vault-init.sh seeds the embedding secret to point at it (provider: "tei", endpoint: "http://tei:80/v1/embeddings", model: "BAAI/bge-m3").
