mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 06:00:48 +00:00
Merge a8714d4687
into 61582f327c
This commit is contained in:
commit
c168126d3b
4 changed files with 8 additions and 10 deletions
|
@ -413,15 +413,6 @@ class MilvusVectorIOAdapter(OpenAIVectorStoreMixin, VectorIO, VectorDBsProtocolP
|
||||||
index = await self._get_and_cache_vector_db_index(vector_db_id)
|
index = await self._get_and_cache_vector_db_index(vector_db_id)
|
||||||
if not index:
|
if not index:
|
||||||
raise VectorStoreNotFoundError(vector_db_id)
|
raise VectorStoreNotFoundError(vector_db_id)
|
||||||
|
|
||||||
if params and params.get("mode") == "keyword":
|
|
||||||
# Check if this is inline Milvus (Milvus-Lite)
|
|
||||||
if hasattr(self.config, "db_path"):
|
|
||||||
raise NotImplementedError(
|
|
||||||
"Keyword search is not supported in Milvus-Lite. "
|
|
||||||
"Please use a remote Milvus server for keyword search functionality."
|
|
||||||
)
|
|
||||||
|
|
||||||
return await index.query_chunks(query, params)
|
return await index.query_chunks(query, params)
|
||||||
|
|
||||||
async def delete_chunks(self, store_id: str, chunks_for_deletion: list[ChunkForDeletion]) -> None:
|
async def delete_chunks(self, store_id: str, chunks_for_deletion: list[ChunkForDeletion]) -> None:
|
||||||
|
|
|
@ -93,6 +93,7 @@ unit = [
|
||||||
"blobfile",
|
"blobfile",
|
||||||
"faiss-cpu",
|
"faiss-cpu",
|
||||||
"pymilvus>=2.5.12",
|
"pymilvus>=2.5.12",
|
||||||
|
"milvus-lite>=2.5.0",
|
||||||
"litellm",
|
"litellm",
|
||||||
"together",
|
"together",
|
||||||
"coverage",
|
"coverage",
|
||||||
|
@ -118,6 +119,7 @@ test = [
|
||||||
"sqlalchemy[asyncio]>=2.0.41",
|
"sqlalchemy[asyncio]>=2.0.41",
|
||||||
"requests",
|
"requests",
|
||||||
"pymilvus>=2.5.12",
|
"pymilvus>=2.5.12",
|
||||||
|
"milvus-lite>=2.5.0",
|
||||||
"weaviate-client>=4.16.4",
|
"weaviate-client>=4.16.4",
|
||||||
]
|
]
|
||||||
docs = [
|
docs = [
|
||||||
|
|
|
@ -56,6 +56,7 @@ def skip_if_provider_doesnt_support_openai_vector_stores_search(client_with_mode
|
||||||
"keyword": [
|
"keyword": [
|
||||||
"inline::sqlite-vec",
|
"inline::sqlite-vec",
|
||||||
"remote::milvus",
|
"remote::milvus",
|
||||||
|
"inline::milvus",
|
||||||
],
|
],
|
||||||
"hybrid": [
|
"hybrid": [
|
||||||
"inline::sqlite-vec",
|
"inline::sqlite-vec",
|
||||||
|
|
6
uv.lock
generated
6
uv.lock
generated
|
@ -1,5 +1,5 @@
|
||||||
version = 1
|
version = 1
|
||||||
revision = 3
|
revision = 2
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
resolution-markers = [
|
resolution-markers = [
|
||||||
"(python_full_version >= '3.13' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.13' and sys_platform != 'darwin' and sys_platform != 'linux')",
|
"(python_full_version >= '3.13' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.13' and sys_platform != 'darwin' and sys_platform != 'linux')",
|
||||||
|
@ -1809,6 +1809,7 @@ test = [
|
||||||
{ name = "chardet" },
|
{ name = "chardet" },
|
||||||
{ name = "datasets" },
|
{ name = "datasets" },
|
||||||
{ name = "mcp" },
|
{ name = "mcp" },
|
||||||
|
{ name = "milvus-lite" },
|
||||||
{ name = "openai" },
|
{ name = "openai" },
|
||||||
{ name = "pymilvus" },
|
{ name = "pymilvus" },
|
||||||
{ name = "pypdf" },
|
{ name = "pypdf" },
|
||||||
|
@ -1831,6 +1832,7 @@ unit = [
|
||||||
{ name = "faiss-cpu" },
|
{ name = "faiss-cpu" },
|
||||||
{ name = "litellm" },
|
{ name = "litellm" },
|
||||||
{ name = "mcp" },
|
{ name = "mcp" },
|
||||||
|
{ name = "milvus-lite" },
|
||||||
{ name = "ollama" },
|
{ name = "ollama" },
|
||||||
{ name = "openai" },
|
{ name = "openai" },
|
||||||
{ name = "pymilvus" },
|
{ name = "pymilvus" },
|
||||||
|
@ -1925,6 +1927,7 @@ test = [
|
||||||
{ name = "chardet" },
|
{ name = "chardet" },
|
||||||
{ name = "datasets" },
|
{ name = "datasets" },
|
||||||
{ name = "mcp" },
|
{ name = "mcp" },
|
||||||
|
{ name = "milvus-lite", specifier = ">=2.5.0" },
|
||||||
{ name = "openai" },
|
{ name = "openai" },
|
||||||
{ name = "pymilvus", specifier = ">=2.5.12" },
|
{ name = "pymilvus", specifier = ">=2.5.12" },
|
||||||
{ name = "pypdf" },
|
{ name = "pypdf" },
|
||||||
|
@ -1946,6 +1949,7 @@ unit = [
|
||||||
{ name = "faiss-cpu" },
|
{ name = "faiss-cpu" },
|
||||||
{ name = "litellm" },
|
{ name = "litellm" },
|
||||||
{ name = "mcp" },
|
{ name = "mcp" },
|
||||||
|
{ name = "milvus-lite", specifier = ">=2.5.0" },
|
||||||
{ name = "ollama" },
|
{ name = "ollama" },
|
||||||
{ name = "openai" },
|
{ name = "openai" },
|
||||||
{ name = "pymilvus", specifier = ">=2.5.12" },
|
{ name = "pymilvus", specifier = ">=2.5.12" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue