迁移服务器;分开开发端与生产端;去除废弃接口;对象存储、Kong网关使用SSL;修改所有使用内网地址的代码;切换域名;更新Ktor、ws-scrcpy启动服务;修改Prometheus配置;
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from langchain_milvus import BM25BuiltInFunction, Milvus
|
||||
from langchain_milvus import Milvus
|
||||
|
||||
from config.llm import llmEmbeddings
|
||||
|
||||
URI = "http://10.10.10.9:19530"
|
||||
URI = "http://ce_milvus:19530"
|
||||
|
||||
knVectorstore = Milvus(
|
||||
embedding_function=llmEmbeddings,
|
||||
@@ -10,12 +11,11 @@ knVectorstore = Milvus(
|
||||
index_params={"index_type": "FLAT", "metric_type": "L2"},
|
||||
consistency_level="Strong",
|
||||
auto_id=True,
|
||||
|
||||
primary_field = "id",
|
||||
primary_field="id",
|
||||
text_field="text",
|
||||
vector_field="vector",
|
||||
partition_key_field = "kn_id",
|
||||
enable_dynamic_field = True,
|
||||
partition_key_field="kn_id",
|
||||
enable_dynamic_field=True,
|
||||
drop_old=False, # set to True if seeking to drop the collection with that name if it exists
|
||||
)
|
||||
memVectorstore = Milvus(
|
||||
@@ -25,11 +25,10 @@ memVectorstore = Milvus(
|
||||
index_params={"index_type": "FLAT", "metric_type": "L2"},
|
||||
consistency_level="Strong",
|
||||
auto_id=True,
|
||||
|
||||
primary_field = "id",
|
||||
primary_field="id",
|
||||
text_field="text",
|
||||
vector_field="vector",
|
||||
partition_key_field = "ai_id",
|
||||
enable_dynamic_field = True,
|
||||
partition_key_field="ai_id",
|
||||
enable_dynamic_field=True,
|
||||
drop_old=False, # set to True if seeking to drop the collection with that name if it exists
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user