mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 03:07:59 +08:00
fix economy index search in workflow (#3205)
This commit is contained in:
parent
f514fd2182
commit
84d7cbf916
@ -242,6 +242,9 @@ class KnowledgeRetrievalNode(BaseNode):
|
||||
# get top k
|
||||
top_k = retrieval_model_config['top_k']
|
||||
# get retrieval method
|
||||
if dataset.indexing_technique == "economy":
|
||||
retrival_method = 'keyword_search'
|
||||
else:
|
||||
retrival_method = retrieval_model_config['search_method']
|
||||
# get reranking model
|
||||
reranking_model=retrieval_model_config['reranking_model'] \
|
||||
|
Loading…
Reference in New Issue
Block a user