Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

perf: Use 5 results from AI Search

Clémence Lesnéce203a4e2768
diff --git a/helpers/config_models/ai_search.py b/helpers/config_models/ai_search.py
index 74b913f..b87b6e8 100644
--- a/helpers/config_models/ai_search.py
+++ b/helpers/config_models/ai_search.py
@@ -8,4 +8,6 @@ class AiSearchModel(BaseSettings):
expansion_k: int = 5
index: str
semantic_configuration: str
- top_k: int = 10
+ top_k: int = (
+ 5 # More than 5, responses latency is high (> 30 secs) with GPT-4 Turbo
+ )