Skip to content

Commit

Permalink
Use local qdrant
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskerPRC committed Sep 19, 2024
1 parent 1a5637d commit 3421049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra_ai_service/api/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
def setup_qdrant_environment():
# 初始化FastEmbed模型和Qdrant客户端
fastembed_model = DefaultEmbedding()
qdrant_client = QdrantClient(url="http://ai_service_qdrant_imp:6333")
collection_name = 'test_simi'
qdrant_client = QdrantClient(path="./qdrant_storage")
collection_name = 'simi'
# 检查集合是否存在,如果不存在则创建
collections_list = qdrant_client.get_collections()
exist_flag = False
Expand Down

0 comments on commit 3421049

Please sign in to comment.