гих хук и сохранение изменений в контексте стори
This commit is contained in:
@@ -18,6 +18,8 @@ class AppConfig:
|
||||
db_dsn: str
|
||||
chunk_size: int
|
||||
chunk_overlap: int
|
||||
chunk_size_lines: int
|
||||
chunk_overlap_lines: int
|
||||
embeddings_dim: int
|
||||
embeddings_model: str
|
||||
llm_model: str
|
||||
@@ -55,6 +57,8 @@ def load_config() -> AppConfig:
|
||||
db_dsn=db_dsn,
|
||||
chunk_size=_env_int("RAG_CHUNK_SIZE", 400),
|
||||
chunk_overlap=_env_int("RAG_CHUNK_OVERLAP", 50),
|
||||
chunk_size_lines=_env_int("RAG_CHUNK_SIZE_LINES", 40),
|
||||
chunk_overlap_lines=_env_int("RAG_CHUNK_OVERLAP_LINES", 8),
|
||||
embeddings_dim=_env_int("RAG_EMBEDDINGS_DIM", 1536),
|
||||
embeddings_model=os.getenv("RAG_EMBEDDINGS_MODEL", "stub-embeddings"),
|
||||
llm_model=os.getenv("RAG_LLM_MODEL", "stub-llm"),
|
||||
|
||||
Reference in New Issue
Block a user