mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-03 19:57:35 +00:00
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: https://github.com/milvus-io/pymilvus/pull/2976 Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
9378bdca43
commit
d3600b92d1
2 changed files with 15 additions and 3 deletions
|
@ -23,7 +23,13 @@ To use Milvus in your Llama Stack project, follow these steps:
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You can install Milvus using pymilvus:
|
If you want to use inline Milvus, you can install:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install pymilvus[milvus-lite]
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to use remote Milvus, you can install:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install pymilvus
|
pip install pymilvus
|
||||||
|
|
|
@ -633,7 +633,13 @@ To use Milvus in your Llama Stack project, follow these steps:
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You can install Milvus using pymilvus:
|
If you want to use inline Milvus, you can install:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install pymilvus[milvus-lite]
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to use remote Milvus, you can install:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install pymilvus
|
pip install pymilvus
|
||||||
|
@ -807,7 +813,7 @@ For more details on TLS configuration, refer to the [TLS setup guide](https://mi
|
||||||
InlineProviderSpec(
|
InlineProviderSpec(
|
||||||
api=Api.vector_io,
|
api=Api.vector_io,
|
||||||
provider_type="inline::milvus",
|
provider_type="inline::milvus",
|
||||||
pip_packages=["pymilvus>=2.4.10"],
|
pip_packages=["pymilvus[milvus-lite]>=2.4.10"],
|
||||||
module="llama_stack.providers.inline.vector_io.milvus",
|
module="llama_stack.providers.inline.vector_io.milvus",
|
||||||
config_class="llama_stack.providers.inline.vector_io.milvus.MilvusVectorIOConfig",
|
config_class="llama_stack.providers.inline.vector_io.milvus.MilvusVectorIOConfig",
|
||||||
api_dependencies=[Api.inference],
|
api_dependencies=[Api.inference],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue