Skip to content

Commit 9ef6936

Browse files
chore: Enable keyword search for Milvus inline
1 parent e90fe25 commit 9ef6936

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

llama_stack/providers/remote/vector_io/milvus/milvus.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -409,15 +409,6 @@ async def query_chunks(
409409
index = await self._get_and_cache_vector_db_index(vector_db_id)
410410
if not index:
411411
raise VectorStoreNotFoundError(vector_db_id)
412-
413-
if params and params.get("mode") == "keyword":
414-
# Check if this is inline Milvus (Milvus-Lite)
415-
if hasattr(self.config, "db_path"):
416-
raise NotImplementedError(
417-
"Keyword search is not supported in Milvus-Lite. "
418-
"Please use a remote Milvus server for keyword search functionality."
419-
)
420-
421412
return await index.query_chunks(query, params)
422413

423414
async def delete_chunks(self, store_id: str, chunk_ids: list[str]) -> None:

tests/integration/vector_io/test_openai_vector_stores.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def skip_if_provider_doesnt_support_openai_vector_stores_search(client_with_mode
5555
"keyword": [
5656
"inline::sqlite-vec",
5757
"remote::milvus",
58+
"inline::milvus",
5859
],
5960
"hybrid": [
6061
"inline::sqlite-vec",

0 commit comments

Comments
 (0)