change to milvus standlone
This commit is contained in:
@ -14,6 +14,7 @@ from config import (
|
||||
MILVUS_PERSIST_BASE_DIR,
|
||||
MILVUS_INDEX_PARAMS,
|
||||
MILVUS_SEARCH_PARAMS,
|
||||
MILVUS_STAND_URI,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__) # Use logger
|
||||
@ -38,7 +39,7 @@ def initialize_milvus_lite(user_id: str) -> MilvusDocumentStore:
|
||||
print(f"Expecting Embedding Dimension (for first write): {OPENAI_EMBEDDING_DIM}")
|
||||
|
||||
document_store = MilvusDocumentStore(
|
||||
connection_args={"uri": milvus_uri},
|
||||
connection_args={"uri": MILVUS_STAND_URI},
|
||||
collection_name=user_id, # Default or customize
|
||||
index_params=MILVUS_INDEX_PARAMS, # Pass index config
|
||||
search_params=MILVUS_SEARCH_PARAMS, # Pass search config
|
||||
|
||||
Reference in New Issue
Block a user