refactor: Move utility services to a dedicated 'services' module

- Updated import paths for LLM, connector, query, and streaming services to reflect their new location in the 'services' module.
- Removed obsolete utility service files that have been migrated.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-07-06 17:51:24 -07:00
parent 59cab99737
commit 5045b7433a
14 changed files with 14 additions and 13 deletions

View file

@ -2,7 +2,7 @@ from .configuration import Configuration
from langchain_core.runnables import RunnableConfig
from .state import State
from typing import Any, Dict
from app.utils.reranker_service import RerankerService
from app.services.reranker_service import RerankerService
from .prompts import get_citation_system_prompt, get_no_documents_system_prompt
from langchain_core.messages import HumanMessage, SystemMessage
from .configuration import SubSectionType
@ -91,7 +91,7 @@ async def write_sub_section(state: State, config: RunnableConfig) -> Dict[str, A
Returns:
Dict containing the final answer in the "final_answer" key.
"""
from app.utils.llm_service import get_user_fast_llm
from app.services.llm_service import get_user_fast_llm
# Get configuration and relevant documents from configuration
configuration = Configuration.from_runnable_config(config)