vapi-moss package. This setup lets your conversational AI perform sub-10ms knowledge base lookups through VAPI’s Custom Knowledge Base webhook, so your agent can answer questions instantly during live calls.
Note: For a complete FastAPI server example, see the vapi-moss app.
Why use Moss with VAPI?
VAPI’s Custom Knowledge Base webhook fires on every user turn, expecting fast document retrieval. Moss responds in under 10ms, keeping voice interactions natural and fluid without added latency from traditional RAG pipelines.Required tools
Integration guide
Search and verify signatures
Use
MossVapiSearch to query your index and verify_vapi_signature to validate incoming webhook requests.Configuration
MossVapiSearch
| Parameter | Type | Default | Description |
|---|---|---|---|
project_id | str | None | Your Moss Project ID. Falls back to MOSS_PROJECT_ID env var. |
project_key | str | None | Your Moss Project Key. Falls back to MOSS_PROJECT_KEY env var. |
index_name | str | Required | The name of the Moss index to query. |
top_k | int | 5 | Number of results to retrieve per query. |
alpha | float | 0.8 | Hybrid search weighting. 0.0 = keyword only, 1.0 = semantic only. |