mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
fix(unittest): add pymilvus and milvus-lite to unit dep group
This commit resolves unittest-3.12 issues. - It adds pymilvus and milvus-lite to unit dep group - It rename VectorDB to VectorStore Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
3e8291c1b9
commit
c6bf292f07
4 changed files with 17 additions and 4 deletions
8
tests/conftest.py
Normal file
8
tests/conftest.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
# This file intentionally left empty - pytest will auto-discover conftest.py files
|
||||
# in subdirectories and load their fixtures automatically.
|
||||
|
|
@ -11,7 +11,6 @@ import numpy as np
|
|||
import pytest
|
||||
from pymilvus import AsyncMilvusClient, connections
|
||||
|
||||
from llama_stack.apis.vector_dbs import VectorDB
|
||||
from llama_stack.apis.vector_io import Chunk, ChunkMetadata, QueryChunksResponse
|
||||
from llama_stack.apis.vector_stores import VectorStore
|
||||
from llama_stack.core.storage.datatypes import KVStoreReference, SqliteKVStoreConfig
|
||||
|
|
@ -205,8 +204,8 @@ async def milvus_vec_adapter(milvus_vec_db_path, mock_inference_api):
|
|||
files_api=None,
|
||||
)
|
||||
await adapter.initialize()
|
||||
await adapter.register_vector_db(
|
||||
VectorDB(
|
||||
await adapter.register_vector_store(
|
||||
VectorStore(
|
||||
identifier=adapter.metadata_collection_name,
|
||||
provider_id="test_provider",
|
||||
embedding_model="test_model",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue