mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Add typing to compiled_references and inferred_queries
This commit is contained in:
@@ -5,7 +5,7 @@ import time
|
|||||||
import yaml
|
import yaml
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
from typing import List, Optional, Union
|
from typing import List, Optional, Union, Any
|
||||||
|
|
||||||
# External Packages
|
# External Packages
|
||||||
from fastapi import APIRouter, HTTPException, Header, Request
|
from fastapi import APIRouter, HTTPException, Header, Request
|
||||||
@@ -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 = []
|
compiled_references = List[Any]
|
||||||
inferred_queries = []
|
inferred_queries = List[Any]
|
||||||
|
|
||||||
if state.content_index is None:
|
if state.content_index is None:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user