mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 05:40:17 +00:00
add typing for extract document references
This commit is contained in:
@@ -6,7 +6,7 @@ import time
|
|||||||
import warnings
|
import warnings
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import Dict, Optional
|
from typing import Any, Dict, List, Optional
|
||||||
from urllib.parse import unquote
|
from urllib.parse import unquote
|
||||||
|
|
||||||
from asgiref.sync import sync_to_async
|
from asgiref.sync import sync_to_async
|
||||||
@@ -698,7 +698,9 @@ async def chat(
|
|||||||
researched_results = ""
|
researched_results = ""
|
||||||
online_results: Dict = dict()
|
online_results: Dict = dict()
|
||||||
## Extract Document References
|
## Extract Document References
|
||||||
compiled_references, inferred_queries, defiltered_query = [], [], None
|
compiled_references: List[Any] = []
|
||||||
|
inferred_queries: List[Any] = []
|
||||||
|
defiltered_query: str = None
|
||||||
|
|
||||||
if conversation_commands == [ConversationCommand.Default] or is_automated_task:
|
if conversation_commands == [ConversationCommand.Default] or is_automated_task:
|
||||||
async for research_result in execute_information_collection(
|
async for research_result in execute_information_collection(
|
||||||
|
|||||||
Reference in New Issue
Block a user