Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rag-metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
ResponseRelevancy,
)

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.services.abst_chat import AbstractChat

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/api_v1/endpoints/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from psycopg.rows import dict_row
from pydantic import BaseModel

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.models import chat as models
from src.app.services.abst_chat import get_chat_service
from src.app.services.constants import subjects as subjectsDict
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/api_v1/endpoints/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pydantic import ValidationError
from starlette.concurrency import run_in_threadpool

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.models.metric import DocumentClickUpdateResponse, RowCorpusQtyDocInfo
from src.app.services.data_collection import get_data_collection_service
from src.app.services.sql_db.queries import get_document_qty_table_info_sync
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/api_v1/endpoints/tutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
UploadFile,
)

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.core.config import Settings
from src.app.models.search import EnhancedSearchQuery
from src.app.services.abst_chat import get_chat_service
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class Settings(BaseSettings):
BACKEND_CORS_ORIGINS_REGEX: str = CLIENT_ORIGINS_REGEX
DATA_COLLECTION_ORIGIN_PREFIX: str

def get_api_version(self, cls):
def get_api_version(self) -> dict:
return {
"title": cls.PROJECT_NAME,
"api_version": cls.API_V1_STR,
"title": self.PROJECT_NAME,
"api_version": self.API_V1_STR,
"semver": "0.1.0",
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/lifespan.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from fastapi import FastAPI
from qdrant_client import AsyncQdrantClient

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.services.llm_proxy import LLMProxy


Expand Down
2 changes: 1 addition & 1 deletion src/app/services/abst_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from langgraph.checkpoint.postgres.aio import AsyncPostgresSaver # type: ignore
from langgraph.prebuilt import create_react_agent # type: ignore

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.models.chat import ReformulatedQueryResponse
from src.app.models.documents import Document
from src.app.services import prompts
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/data_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from fastapi.concurrency import run_in_threadpool
from qdrant_client.models import ScoredPoint

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.models.documents import Document
from src.app.services.sql_db.queries import (
get_current_data_collection_campaign,
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/sql_db/sql_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlalchemy import URL, create_engine
from sqlalchemy.orm import sessionmaker

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.utils.decorators import singleton

settings = get_settings()
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/tutor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pypdf import PdfReader
from qdrant_client.models import ScoredPoint

from src.app.api.dependencies import get_settings
from src.app.shared.utils.dependencies import get_settings
from src.app.services.pdf_extractor import extract_txt_from_pdf_with_tika
from src.app.utils.decorators import log_time_and_error_sync

Expand Down
File renamed without changes.
Empty file added src/app/shared/api/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from fastapi import APIRouter, HTTPException, status
from pydantic import BaseModel

from src.app.api.dependencies import ConfigDepend
from src.app.shared.utils.dependencies import ConfigDepend

router = APIRouter()

Expand Down
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from starlette.exceptions import HTTPException as StarletteHTTPException

from src.app.api.api_v1.api import api_router, api_tags_metadata
from src.app.api.shared.enpoints import health
from src.app.shared.api import health
from src.app.core.config import settings
from src.app.core.lifespan import lifespan
from src.app.middleware.monitor_requests import MonitorRequestsMiddleware
Expand Down
Loading