This plugin enables semantic/vector search in Apache Answer using Qdrant.
Build Apache Answer with this plugin:
./answer build --with github.com/apache/answer-plugins/vector-search-qdrant
After enabling the plugin in the Admin UI (Admin > Plugins > Vector Search), configure the following fields:
| Field | Description | Example |
|---|---|---|
| Qdrant Endpoint | Qdrant gRPC endpoint | localhost:6334 |
| Qdrant API Key | API key for Qdrant authentication (optional for local instances) | |
| Embedding API Host | OpenAI-compatible API base URL | https://api.openai.com |
| Embedding API Key | API key for the embedding service | sk-... |
| Embedding Model | Model name for generating embeddings | text-embedding-3-small |
| Embedding Level | question embeds question + all answers + comments together; answer embeds each answer separately | question |
| Similarity Threshold | Minimum cosine similarity score (0-1). Default 0 means no filtering | 0.5 |
Note: This plugin uses a dual API key pattern -- one for Qdrant authentication and a separate one for the embedding API.
answer_vector_embeddings with cosine distance metric.Using Docker:
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
The gRPC endpoint will be localhost:6334 and the REST API at localhost:6333.