浏览代码

fix: query collection api call

Steven Kreitzer 1 年之前
父节点
当前提交
1c1d2c254d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/apps/rag/main.py

+ 1 - 1
backend/apps/rag/main.py

@@ -390,7 +390,7 @@ def query_collection_handler(
     user=Depends(get_current_user),
 ):
     try:
-        embeddings_function = embeddings_function(
+        embeddings_function = query_embeddings_function(
             app.state.RAG_EMBEDDING_ENGINE,
             app.state.RAG_EMBEDDING_MODEL,
             app.state.sentence_transformer_ef,