更新self.dims_length赋值错误 (#2380)

This commit is contained in:
xldistance 2023-12-14 19:56:39 +08:00 committed by GitHub
parent 9c5b81cb2b
commit 332e1ccfaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class ESKBService(KBService):
self.PORT = kbs_config[self.vs_type()]['port'] self.PORT = kbs_config[self.vs_type()]['port']
self.user = kbs_config[self.vs_type()].get("user",'') self.user = kbs_config[self.vs_type()].get("user",'')
self.password = kbs_config[self.vs_type()].get("password",'') self.password = kbs_config[self.vs_type()].get("password",'')
self.password = kbs_config[self.vs_type()].get("dims_length",None) self.dims_length = kbs_config[self.vs_type()].get("dims_length",None)
self.embeddings_model = load_local_embeddings(self.embed_model, EMBEDDING_DEVICE) self.embeddings_model = load_local_embeddings(self.embed_model, EMBEDDING_DEVICE)
try: try:
# ES python客户端连接仅连接 # ES python客户端连接仅连接