diff --git a/.gitignore b/.gitignore index 8bf471e7..970b5bec 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,4 @@ wheels/ *.json .DS_Store -config.yaml +config/ diff --git a/config/config.example.yaml b/config/config.example.yaml new file mode 100644 index 00000000..410025e7 --- /dev/null +++ b/config/config.example.yaml @@ -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..." \ No newline at end of file diff --git a/docker-compose-cpu.yml b/docker-compose-cpu.yml index d0de6ce9..9b0ff88b 100644 --- a/docker-compose-cpu.yml +++ b/docker-compose-cpu.yml @@ -74,6 +74,7 @@ services: - ./documents:/app/documents:Z - ./keys:/app/keys:Z - ./flows:/app/flows:Z + - ./config:/app/config:z openrag-frontend: image: phact/openrag-frontend:${OPENRAG_VERSION:-latest} diff --git a/docker-compose.yml b/docker-compose.yml index daa921ae..34a5947f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -73,6 +73,7 @@ services: - ./documents:/app/documents:Z - ./keys:/app/keys:Z - ./flows:/app/flows:z + - ./config:/app/config:z gpus: all openrag-frontend: diff --git a/frontend/components/label-wrapper.tsx b/frontend/components/label-wrapper.tsx index 691b7726..0ebde8a6 100644 --- a/frontend/components/label-wrapper.tsx +++ b/frontend/components/label-wrapper.tsx @@ -37,7 +37,7 @@ export function LabelWrapper({ >