remove unnecessary imports
Browse files
climateqa/engine/talk_to_data/input_processing.py
CHANGED
@@ -10,8 +10,6 @@ from climateqa.engine.talk_to_data.objects.llm_outputs import ArrayOutput
|
|
10 |
from climateqa.engine.talk_to_data.objects.location import Location
|
11 |
from climateqa.engine.talk_to_data.objects.plot import Plot
|
12 |
from climateqa.engine.talk_to_data.objects.states import State
|
13 |
-
import time
|
14 |
-
import ast
|
15 |
|
16 |
async def detect_location_with_openai(sentence: str) -> str:
|
17 |
"""
|
|
|
10 |
from climateqa.engine.talk_to_data.objects.location import Location
|
11 |
from climateqa.engine.talk_to_data.objects.plot import Plot
|
12 |
from climateqa.engine.talk_to_data.objects.states import State
|
|
|
|
|
13 |
|
14 |
async def detect_location_with_openai(sentence: str) -> str:
|
15 |
"""
|
climateqa/engine/talk_to_data/main.py
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
-
from operator import index
|
2 |
-
from duckdb import sql
|
3 |
from climateqa.engine.talk_to_data.workflow.drias import drias_workflow
|
4 |
-
from climateqa.engine.llm import get_llm
|
5 |
from climateqa.engine.talk_to_data.workflow.ipcc import ipcc_workflow
|
6 |
from climateqa.logging import log_drias_interaction_to_huggingface
|
7 |
-
from climateqa.logging import log_drias_interaction_to_huggingface
|
8 |
|
9 |
async def ask_drias(query: str, index_state: int = 0, user_id: str | None = None) -> tuple:
|
10 |
"""Main function to process a DRIAS query and return results.
|
|
|
|
|
|
|
1 |
from climateqa.engine.talk_to_data.workflow.drias import drias_workflow
|
|
|
2 |
from climateqa.engine.talk_to_data.workflow.ipcc import ipcc_workflow
|
3 |
from climateqa.logging import log_drias_interaction_to_huggingface
|
|
|
4 |
|
5 |
async def ask_drias(query: str, index_state: int = 0, user_id: str | None = None) -> tuple:
|
6 |
"""Main function to process a DRIAS query and return results.
|