Skip to content

Commit

Permalink
Add file_descriptors field into data for process_question post request
Browse files Browse the repository at this point in the history
  • Loading branch information
markbotterill committed Jul 15, 2024
1 parent e914e90 commit 713824b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/scripts/api_inference_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def process_question(danswer_url: str, question: str, api_key: str | None) -> No
"prompt_id": 0,
# Not specifying any specific docs to chat to, we want to run a search
"search_doc_ids": None,
"file_descriptors": [],
"retrieval_options": {
"run_search": "always",
"real_time": True,
Expand Down
1 change: 1 addition & 0 deletions backend/scripts/hubgpt_eval_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def process_question(danswer_url: str, question: str, api_key: str | None) -> No
"parent_message_id": None,
# Default Question Answer prompt
"prompt_id": 0,
"file_descriptors": [],
# Not specifying any specific docs to chat to, we want to run a search
"search_doc_ids": None,
"retrieval_options": {
Expand Down

0 comments on commit 713824b

Please sign in to comment.