仪评指标联分析模块

This commit is contained in:
BBIT-Kai
2025-09-24 13:59:00 +08:00
parent 0ab82b00d6
commit d2775f60a7
28 changed files with 1106 additions and 181 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
from langchain_milvus import BM25BuiltInFunction, Milvus
from config.llm import embeddings
from config.llm import llmEmbeddings
URI = "http://10.10.10.9:19530"
knVectorstore = Milvus(
embedding_function=embeddings,
embedding_function=llmEmbeddings,
connection_args={"uri": URI, "token": "root:Milvus", "db_name": "bbit_ai_lab"},
collection_name="knowledge",
index_params={"index_type": "FLAT", "metric_type": "L2"},
@@ -19,7 +19,7 @@ knVectorstore = Milvus(
drop_old=False, # set to True if seeking to drop the collection with that name if it exists
)
memVectorstore = Milvus(
embedding_function=embeddings,
embedding_function=llmEmbeddings,
connection_args={"uri": URI, "token": "root:Milvus", "db_name": "bbit_ai_lab"},
collection_name="memory",
index_params={"index_type": "FLAT", "metric_type": "L2"},