Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -142,14 +142,7 @@ async def ask(query: Query):
|
|
142 |
try:
|
143 |
logger.debug(f"Received question: {query.question}")
|
144 |
prompt = generate_prompt(query.question)
|
145 |
-
timeout_callback = TimeoutCallback(timeout_seconds=
|
146 |
-
|
147 |
-
# docs = retriever.get_relevant_documents(query.question)
|
148 |
-
# if not docs:
|
149 |
-
# logger.warning("No documents retrieved from Qdrant for the question.")
|
150 |
-
# else:
|
151 |
-
# logger.debug(f"Retrieved documents: {[doc.page_content for doc in docs[:1]]}")
|
152 |
-
|
153 |
loop = asyncio.get_event_loop()
|
154 |
|
155 |
response = await asyncio.wait_for(
|
|
|
142 |
try:
|
143 |
logger.debug(f"Received question: {query.question}")
|
144 |
prompt = generate_prompt(query.question)
|
145 |
+
timeout_callback = TimeoutCallback(timeout_seconds=360)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
loop = asyncio.get_event_loop()
|
147 |
|
148 |
response = await asyncio.wait_for(
|