feat: 更改milvus相关环境变量名称

This commit is contained in:
martsforever
2025-09-07 14:24:44 +08:00
parent 375daa3ee8
commit 510247d927
+2 -2
View File
@@ -38,8 +38,8 @@ class MilvusService:
# 检查Milvus连接是否正常
async def check_milvus_connection(self):
retrieve_result = await self.async_search("hello")
print("✅ Milvus connection successful:", f"{env.milvus_uri}:{env.milvus_database}/{env.milvus_collection}", f"[{retrieve_result}]")
await self.async_search("hello")
print("✅ Milvus connection successful:", f"Milvus://{env.milvus_username}:{env.milvus_password}@{env.milvus_uri}/{env.llama_index_database}/{env.llama_index_collection}")
async def async_create_index_from_documents(self, documents: List[Document]) -> VectorStoreIndex:
vector_store = await self.get_vector_store()