Skip to content

Commit d3600b9

Browse files
authored
fix: force milvus-lite installation for inline::milvus (#3488)
# What does this PR do? pymilvus recently made `milvus-lite` an optional dependency to their package. If someone wants to use the inline provider we must include the extra dependency. For more details see: milvus-io/pymilvus#2976 Signed-off-by: Sébastien Han <[email protected]>
1 parent 9378bdc commit d3600b9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

docs/source/providers/vector_io/remote_milvus.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ To use Milvus in your Llama Stack project, follow these steps:
2323

2424
## Installation
2525

26-
You can install Milvus using pymilvus:
26+
If you want to use inline Milvus, you can install:
27+
28+
```bash
29+
pip install pymilvus[milvus-lite]
30+
```
31+
32+
If you want to use remote Milvus, you can install:
2733

2834
```bash
2935
pip install pymilvus

llama_stack/providers/registry/vector_io.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,13 @@ def available_providers() -> list[ProviderSpec]:
633633
634634
## Installation
635635
636-
You can install Milvus using pymilvus:
636+
If you want to use inline Milvus, you can install:
637+
638+
```bash
639+
pip install pymilvus[milvus-lite]
640+
```
641+
642+
If you want to use remote Milvus, you can install:
637643
638644
```bash
639645
pip install pymilvus
@@ -807,7 +813,7 @@ def available_providers() -> list[ProviderSpec]:
807813
InlineProviderSpec(
808814
api=Api.vector_io,
809815
provider_type="inline::milvus",
810-
pip_packages=["pymilvus>=2.4.10"],
816+
pip_packages=["pymilvus[milvus-lite]>=2.4.10"],
811817
module="llama_stack.providers.inline.vector_io.milvus",
812818
config_class="llama_stack.providers.inline.vector_io.milvus.MilvusVectorIOConfig",
813819
api_dependencies=[Api.inference],

0 commit comments

Comments
 (0)