mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Pass more search results as context to Chat Actor to improve inference
This commit is contained in:
parent
10836dedee
commit
f63fd0995e
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ def chat(q: Optional[str] = None):
|
|||
# Collate search results as context for GPT
|
||||
result_list = []
|
||||
for query in inferred_queries:
|
||||
result_list.extend(search(query, n=2, r=True, score_threshold=-5.0, dedupe=False))
|
||||
result_list.extend(search(query, n=5, r=True, score_threshold=-5.0, dedupe=False))
|
||||
collated_result = "\n\n".join({f"# {item.additional['compiled']}" for item in result_list})
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue