Add example of using local mode in README

This commit is contained in:
Kacper Łukawski
2024-12-13 17:52:10 +01:00
parent 64ad4e6f3d
commit 2e871a4707

View File

@@ -78,7 +78,28 @@ By default, the server will use the `sentence-transformers/all-MiniLM-L6-v2` emb
For the time being, only [FastEmbed](https://qdrant.github.io/fastembed/) models are supported, and you can change it
by passing the `--fastembed-model-name` argument to the server.
### Environment Variables
### Using a local Qdrant database
To use a local mode of Qdrant, you can specify the path to the database using the `--qdrant-local-path` argument:
```json
{
"qdrant": {
"command": "uvx",
"args": [
"mcp-server-qdrant",
"--qdrant-local-path",
"/path/to/qdrant/database",
"--collection-name",
"your_collection_name"
]
}
}
```
It will run Qdrant local mode inside the same process as the MCP server. Although it is not recommended for production.
## Environment Variables
The configuration of the server can be also done using environment variables: