Support multiple collections (#26)
* Allow passing the collection name in each request to override the default * Allow getting the collection names in QdrantConnector * get vector size from model description * ruff format * add isort * apply pre-commit hooks --------- Co-authored-by: generall <andrey@vasnetsov.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
[](https://smithery.ai/protocol/mcp-server-qdrant)
|
||||
|
||||
> The [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) is an open protocol that enables
|
||||
> seamless integration between LLM applications and external data sources and tools. Whether you’re building an
|
||||
> seamless integration between LLM applications and external data sources and tools. Whether you're building an
|
||||
> AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to
|
||||
> connect LLMs with the context they need.
|
||||
|
||||
@@ -25,11 +25,15 @@ It acts as a semantic memory layer on top of the Qdrant database.
|
||||
- Input:
|
||||
- `information` (string): Information to store
|
||||
- `metadata` (JSON): Optional metadata to store
|
||||
- `collection_name` (string): Name of the collection to store the information in, optional. If not provided,
|
||||
the default collection name will be used.
|
||||
- Returns: Confirmation message
|
||||
2. `qdrant-find`
|
||||
- Retrieve relevant information from the Qdrant database
|
||||
- Input:
|
||||
- `query` (string): Query to use for searching
|
||||
- `collection_name` (string): Name of the collection to store the information in, optional. If not provided,
|
||||
the default collection name will be used.
|
||||
- Returns: Information stored in the Qdrant database as separate messages
|
||||
|
||||
## Environment Variables
|
||||
@@ -40,7 +44,7 @@ The configuration of the server is done using environment variables:
|
||||
|--------------------------|---------------------------------------------------------------------|-------------------------------------------------------------------|
|
||||
| `QDRANT_URL` | URL of the Qdrant server | None |
|
||||
| `QDRANT_API_KEY` | API key for the Qdrant server | None |
|
||||
| `COLLECTION_NAME` | Name of the collection to use | *Required* |
|
||||
| `COLLECTION_NAME` | Name of the default collection to use. | *Required* |
|
||||
| `QDRANT_LOCAL_PATH` | Path to the local Qdrant database (alternative to `QDRANT_URL`) | None |
|
||||
| `EMBEDDING_PROVIDER` | Embedding provider to use (currently only "fastembed" is supported) | `fastembed` |
|
||||
| `EMBEDDING_MODEL` | Name of the embedding model to use | `sentence-transformers/all-MiniLM-L6-v2` |
|
||||
|
||||
Reference in New Issue
Block a user