Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limiting the number of retrievals and shortening the chat window size #369

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions llm-server/routes/root_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ async def handle_request(
"chatbot response",
error=str(e),
method="handle_request",
apis=apis,
prev_conversations=prev_conversations,
context=context,
flows=flows,
)

return {"response": str(e), "error": "An error occured in handle request"}
Expand Down
2 changes: 1 addition & 1 deletion llm-server/routes/workflow/utils/api_retrievers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def get_relevant_apis_summaries(text: str, bot_id: str) -> List[ApiOperati

apis_retriever = apis.as_retriever(
search_kwargs={
"k": 5,
"k": 3,
"score_threshold": score_threshold,
"filter": {"bot_id": bot_id},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def process_conversation_step(
{{
"ids": ["list", "of", "operationIds", "for apis to be called"],
"bot_message": "your response based on the instructions provided at the beginning",
"missing_information": "Optional Field; Incase of ambiguity where user input is not sufficient to make the api call, ask follow up questions. Followup question should only be asked once per user input"
"missing_information": "Optional Field; Incase of ambiguity where user input is not sufficient to make the api call, ask follow up questions."
}}
"""
)
Expand Down
Loading