Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Lucas Oliveira
35037a0bde added config example yaml 2025-10-01 17:35:34 -03:00
Lucas Oliveira
2fb28d45fe changed gitignore 2025-10-01 17:34:57 -03:00
Lucas Oliveira
2cc9dd4d84 changed config path 2025-10-01 17:34:51 -03:00
Lucas Oliveira
8bf5631e9b fixed docker compose cpu and normal with volume 2025-10-01 17:34:38 -03:00
5 changed files with 19 additions and 4 deletions

2
.gitignore vendored
View file

@ -19,4 +19,4 @@ wheels/
*.json
.DS_Store
config.yaml
config/

View file

@ -0,0 +1,15 @@
# OpenRAG Configuration File
provider:
model_provider: "openai" # openai, anthropic, azure, etc.
api_key: "your-api-key" # or use OPENAI_API_KEY env var
knowledge:
embedding_model: "text-embedding-3-small"
chunk_size: 1000
chunk_overlap: 200
ocr: true
picture_descriptions: false
agent:
llm_model: "gpt-4o-mini"
system_prompt: "You are a helpful AI assistant..."

View file

@ -74,7 +74,7 @@ services:
- ./documents:/app/documents:Z
- ./keys:/app/keys:Z
- ./flows:/app/flows:Z
- ./config.yaml:/app/config.yaml:Z
- ./config:/app/config:z
openrag-frontend:
image: phact/openrag-frontend:${OPENRAG_VERSION:-latest}

View file

@ -73,7 +73,7 @@ services:
- ./documents:/app/documents:Z
- ./keys:/app/keys:Z
- ./flows:/app/flows:z
- ./config.yaml:/app/config.yaml:Z
- ./config:/app/config:z
gpus: all
openrag-frontend:

View file

@ -73,7 +73,7 @@ class ConfigManager:
Args:
config_file: Path to configuration file. Defaults to 'config.yaml' in project root.
"""
self.config_file = Path(config_file) if config_file else Path("config.yaml")
self.config_file = Path(config_file) if config_file else Path("config/config.yaml")
self._config: Optional[OpenRAGConfig] = None
def load_config(self) -> OpenRAGConfig: