浏览代码

Merge pull request #1905 from 7a6ac0/r_score_type

fix: change r_score type to float
Timothy Jaeryang Baek 1 年之前
父节点
当前提交
e700552f93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/apps/rag/utils.py

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

@@ -53,7 +53,7 @@ def query_doc_with_hybrid_search(
     embedding_function,
     k: int,
     reranking_function,
-    r: int,
+    r: float,
 ):
     try:
         collection = CHROMA_CLIENT.get_collection(name=collection_name)