move file service in wrong directory to file service

This commit is contained in:
Maxime Thoonsen 2024-04-18 23:20:38 -10:00 committed by Thoonsen Maxime
parent 0de203bdd1
commit 997576d577
16 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ from modules.knowledge.dto.inputs import CreateKnowledgeProperties
from modules.knowledge.repository.knowledge_interface import KnowledgeInterface from modules.knowledge.repository.knowledge_interface import KnowledgeInterface
from modules.knowledge.service.knowledge_service import KnowledgeService from modules.knowledge.service.knowledge_service import KnowledgeService
from pydantic import BaseModel from pydantic import BaseModel
from repository.files.upload_file import upload_file_storage from modules.upload.service.upload_file import upload_file_storage
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -24,7 +24,7 @@ from modules.chat.dto.outputs import GetChatHistoryOutput
from modules.chat.service.chat_service import ChatService from modules.chat.service.chat_service import ChatService
from pydantic import BaseModel, ConfigDict from pydantic import BaseModel, ConfigDict
from pydantic_settings import BaseSettings from pydantic_settings import BaseSettings
from repository.files.generate_file_signed_url import generate_file_signed_url from modules.upload.service.generate_file_signed_url import generate_file_signed_url
logger = get_logger(__name__) logger = get_logger(__name__)
QUIVR_DEFAULT_PROMPT = "Your name is Quivr. You're a helpful assistant. If you don't know the answer, just say that you don't know, don't try to make up an answer." QUIVR_DEFAULT_PROMPT = "Your name is Quivr. You're a helpful assistant. If you don't know the answer, just say that you don't know, don't try to make up an answer."

View File

@ -3,7 +3,7 @@ from uuid import UUID
from attr import dataclass from attr import dataclass
from logger import get_logger from logger import get_logger
from models.settings import get_embeddings, get_supabase_client from models.settings import get_embeddings, get_supabase_client
from repository.files.generate_file_signed_url import generate_file_signed_url from modules.upload.service.generate_file_signed_url import generate_file_signed_url
from vectorstore.supabase import CustomSupabaseVectorStore from vectorstore.supabase import CustomSupabaseVectorStore
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -11,7 +11,7 @@ from modules.brain.service.brain_authorization_service import (
from modules.brain.service.brain_vector_service import BrainVectorService from modules.brain.service.brain_vector_service import BrainVectorService
from modules.knowledge.service.knowledge_service import KnowledgeService from modules.knowledge.service.knowledge_service import KnowledgeService
from modules.user.entity.user_identity import UserIdentity from modules.user.entity.user_identity import UserIdentity
from repository.files.generate_file_signed_url import generate_file_signed_url from modules.upload.service.generate_file_signed_url import generate_file_signed_url
knowledge_router = APIRouter() knowledge_router = APIRouter()
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -22,7 +22,7 @@ from modules.notification.service.notification_service import NotificationServic
from modules.user.entity.user_identity import UserIdentity from modules.user.entity.user_identity import UserIdentity
from packages.files.file import convert_bytes, get_file_size from packages.files.file import convert_bytes, get_file_size
from packages.utils.telemetry import maybe_send_telemetry from packages.utils.telemetry import maybe_send_telemetry
from repository.files.upload_file import upload_file_storage from modules.upload.service.upload_file import upload_file_storage
logger = get_logger(__name__) logger = get_logger(__name__)
upload_router = APIRouter() upload_router = APIRouter()

View File

@ -5,7 +5,7 @@ from logger import get_logger
from models import File from models import File
from modules.brain.service.brain_vector_service import BrainVectorService from modules.brain.service.brain_vector_service import BrainVectorService
from packages.embeddings.vectors import Neurons from packages.embeddings.vectors import Neurons
from repository.files.upload_file import DocumentSerializable from modules.upload.service.upload_file import DocumentSerializable
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -17,7 +17,7 @@ from modules.prompt.service.prompt_service import PromptService
from modules.user.entity.user_identity import UserIdentity from modules.user.entity.user_identity import UserIdentity
from modules.user.service.user_service import UserService from modules.user.service.user_service import UserService
from pydantic import BaseModel from pydantic import BaseModel
from repository.brain_subscription import ( from modules.brain.service.brain_subscription import (
SubscriptionInvitationService, SubscriptionInvitationService,
resend_invitation_email, resend_invitation_email,
) )

View File

@ -24,7 +24,7 @@ from modules.knowledge.dto.inputs import CreateKnowledgeProperties
from modules.knowledge.service.knowledge_service import KnowledgeService from modules.knowledge.service.knowledge_service import KnowledgeService
from ragas import evaluate from ragas import evaluate
from ragas.embeddings.base import LangchainEmbeddingsWrapper from ragas.embeddings.base import LangchainEmbeddingsWrapper
from repository.files.upload_file import upload_file_storage from modules.upload.service.upload_file import upload_file_storage
def main( def main(