Fix some RAG bugs (#2570)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong 2024-02-27 11:39:05 +08:00 committed by GitHub
commit 5b953c1ef2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 33 additions and 59 deletions

View file

@ -39,7 +39,8 @@ class RetrievalService:
'flask_app': current_app._get_current_object(),
'dataset_id': dataset_id,
'query': query,
'top_k': top_k
'top_k': top_k,
'all_documents': all_documents
})
threads.append(keyword_thread)
keyword_thread.start()