feat: added top_k in chat Interface.

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-11-06 13:25:05 -08:00
parent e79845bd5e
commit 7ed159b395
10 changed files with 217 additions and 5 deletions

View file

@ -24,6 +24,7 @@ from app.utils.validators import (
validate_research_mode,
validate_search_mode,
validate_search_space_id,
validate_top_k,
)
router = APIRouter()
@ -54,6 +55,7 @@ async def handle_chat_data(
request_data.get("document_ids_to_add_in_context")
)
search_mode_str = validate_search_mode(request_data.get("search_mode"))
top_k = validate_top_k(request_data.get("top_k"))
# print("RESQUEST DATA:", request_data)
# print("SELECTED CONNECTORS:", selected_connectors)
@ -123,6 +125,7 @@ async def handle_chat_data(
search_mode_str,
document_ids_to_add_in_context,
language,
top_k,
)
)