quivr/backend/core/quivr_core/config.py
AmineDiro 9d3e9edfd2
feat: quivr api use quivr core (#2868)
# Description

- `quivr-api` uses `quivr-core` for generating   
- separate `rag_service` 
- removed the package quivr_core from api.
2024-07-15 10:10:03 -07:00

19 lines
453 B
Python

from pydantic import BaseModel
class LLMEndpointConfig(BaseModel):
model: str = "gpt-3.5-turbo-0125"
llm_base_url: str | None = None
llm_api_key: str | None = None
max_input: int = 2000
max_tokens: int = 2000
temperature: float = 0.7
streaming: bool = True
class RAGConfig(BaseModel):
llm_config: LLMEndpointConfig = LLMEndpointConfig()
max_history: int = 10
max_files: int = 20
prompt: str | None = None