Fix bug in /chat endpoint for general and update depdendencies

This commit is contained in:
sabaimran 2023-08-28 14:12:04 -07:00
parent c93dcc948a
commit 7c35da9fc4
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ dependencies = [
"transformers >= 4.28.0", "transformers >= 4.28.0",
"torch >= 2.0.1", "torch >= 2.0.1",
"uvicorn == 0.17.6", "uvicorn == 0.17.6",
"aiohttp == 3.8.4", "aiohttp == 3.8.5",
"langchain >= 0.0.187", "langchain >= 0.0.187",
"pypdf >= 3.9.0", "pypdf >= 3.9.0",
"requests >= 2.26.0", "requests >= 2.26.0",

View file

@ -771,7 +771,7 @@ async def extract_references_and_questions(
return compiled_references, inferred_queries return compiled_references, inferred_queries
if conversation_type == ConversationCommand.General: if conversation_type == ConversationCommand.General:
return compiled_references, inferred_queries return compiled_references, inferred_queries, q
# Extract filter terms from user message # Extract filter terms from user message
defiltered_query = q defiltered_query = q