chore: Make milvus an optional dependency

Make Milvus an optional dependency, expand docs with Milvus information

Chore
This commit is contained in:
Igor Ilic 2024-12-03 10:37:50 +01:00
parent f65070087f
commit fb5f0cf00f
3 changed files with 15 additions and 3 deletions

View file

@ -14,7 +14,7 @@ GRAPH_DATABASE_URL=
GRAPH_DATABASE_USERNAME= GRAPH_DATABASE_USERNAME=
GRAPH_DATABASE_PASSWORD= GRAPH_DATABASE_PASSWORD=
# "qdrant", "pgvector", "weaviate" or "lancedb" # "qdrant", "pgvector", "weaviate", "milvus" or "lancedb"
VECTOR_DB_PROVIDER="lancedb" VECTOR_DB_PROVIDER="lancedb"
# Not needed if using "lancedb" or "pgvector" # Not needed if using "lancedb" or "pgvector"
VECTOR_DB_URL= VECTOR_DB_URL=

View file

@ -53,6 +53,12 @@ pip install 'cognee[qdrant]'
pip install 'cognee[neo4j]' pip install 'cognee[neo4j]'
``` ```
### With pip with Milvus support
```bash
pip install 'cognee[milvus]'
```
### With poetry ### With poetry
```bash ```bash
@ -83,6 +89,12 @@ poetry add cognee -E qdrant
poetry add cognee -E neo4j poetry add cognee -E neo4j
``` ```
### With poetry with Milvus support
```bash
poetry add cognee -E milvus
```
## 💻 Basic Usage ## 💻 Basic Usage

View file

@ -70,7 +70,7 @@ asyncpg = {version = "0.30.0", optional = true}
pgvector = {version = "^0.3.5", optional = true} pgvector = {version = "^0.3.5", optional = true}
psycopg2 = {version = "^2.9.10", optional = true} psycopg2 = {version = "^2.9.10", optional = true}
llama-index-core = {version = "^0.11.22", optional = true} llama-index-core = {version = "^0.11.22", optional = true}
pymilvus = "^2.5.0" pymilvus = {version = "^2.5.0", optional = true}
[tool.poetry.extras] [tool.poetry.extras]
filesystem = ["s3fs", "botocore"] filesystem = ["s3fs", "botocore"]
@ -85,7 +85,7 @@ posthog = ["posthog"]
falkordb = ["falkordb"] falkordb = ["falkordb"]
groq = ["groq"] groq = ["groq"]
langfuse = ["langfuse"] langfuse = ["langfuse"]
milvus = ["pymilvus"]
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
pytest = "^7.4.0" pytest = "^7.4.0"