mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Fix typing issues for mypy (#372)
This commit is contained in:
@@ -21,7 +21,7 @@ def extract_questions_offline(
|
|||||||
conversation_log={},
|
conversation_log={},
|
||||||
use_history: bool = True,
|
use_history: bool = True,
|
||||||
should_extract_questions: bool = True,
|
should_extract_questions: bool = True,
|
||||||
):
|
) -> List[str]:
|
||||||
"""
|
"""
|
||||||
Infer search queries to retrieve relevant notes to answer user query
|
Infer search queries to retrieve relevant notes to answer user query
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -703,8 +703,8 @@ async def extract_references_and_questions(
|
|||||||
|
|
||||||
# Initialize Variables
|
# Initialize Variables
|
||||||
conversation_type = "general" if q.startswith("@general") else "notes"
|
conversation_type = "general" if q.startswith("@general") else "notes"
|
||||||
compiled_references = List[Any]
|
compiled_references: List[Any] = []
|
||||||
inferred_queries = List[Any]
|
inferred_queries: List[str] = []
|
||||||
|
|
||||||
if state.content_index is None:
|
if state.content_index is None:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user