mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 17:03:29 +03:00
move file service in wrong directory to file service
This commit is contained in:
parent
0de203bdd1
commit
997576d577
@ -14,7 +14,7 @@ from modules.knowledge.dto.inputs import CreateKnowledgeProperties
|
||||
from modules.knowledge.repository.knowledge_interface import KnowledgeInterface
|
||||
from modules.knowledge.service.knowledge_service import KnowledgeService
|
||||
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__)
|
||||
|
||||
|
@ -24,7 +24,7 @@ from modules.chat.dto.outputs import GetChatHistoryOutput
|
||||
from modules.chat.service.chat_service import ChatService
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
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__)
|
||||
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."
|
||||
|
@ -3,7 +3,7 @@ from uuid import UUID
|
||||
from attr import dataclass
|
||||
from logger import get_logger
|
||||
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
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
@ -11,7 +11,7 @@ from modules.brain.service.brain_authorization_service import (
|
||||
from modules.brain.service.brain_vector_service import BrainVectorService
|
||||
from modules.knowledge.service.knowledge_service import KnowledgeService
|
||||
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()
|
||||
logger = get_logger(__name__)
|
||||
|
@ -22,7 +22,7 @@ from modules.notification.service.notification_service import NotificationServic
|
||||
from modules.user.entity.user_identity import UserIdentity
|
||||
from packages.files.file import convert_bytes, get_file_size
|
||||
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__)
|
||||
upload_router = APIRouter()
|
||||
|
@ -5,7 +5,7 @@ from logger import get_logger
|
||||
from models import File
|
||||
from modules.brain.service.brain_vector_service import BrainVectorService
|
||||
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__)
|
||||
|
||||
|
@ -17,7 +17,7 @@ from modules.prompt.service.prompt_service import PromptService
|
||||
from modules.user.entity.user_identity import UserIdentity
|
||||
from modules.user.service.user_service import UserService
|
||||
from pydantic import BaseModel
|
||||
from repository.brain_subscription import (
|
||||
from modules.brain.service.brain_subscription import (
|
||||
SubscriptionInvitationService,
|
||||
resend_invitation_email,
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ from modules.knowledge.dto.inputs import CreateKnowledgeProperties
|
||||
from modules.knowledge.service.knowledge_service import KnowledgeService
|
||||
from ragas import evaluate
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user