Skip to content

Commit

Permalink
make NUM_RETURNED_HITS configurable (#32)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Co <alex.tuan@mindvalley.com>
  • Loading branch information
onimsha authored May 24, 2024
1 parent 7e87921 commit 396d0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/danswer/configs/chat_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PROMPTS_YAML = "./danswer/chat/prompts.yaml"
PERSONAS_YAML = "./danswer/chat/personas.yaml"

NUM_RETURNED_HITS = 50
NUM_RETURNED_HITS = os.environ.get("TOOL_SEARCH_NUM_RETURNED_HITS") or 50
NUM_RERANKED_RESULTS = 15

# May be less depending on model
Expand Down

0 comments on commit 396d0cb

Please sign in to comment.