From a4c92ac9011322f074db247a33d46bfbcfb1fec2 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Wed, 1 Oct 2025 16:19:15 -0400 Subject: [PATCH 1/3] custom-domain --- docs/docusaurus.config.js | 4 ++-- docs/static/CNAME | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 docs/static/CNAME diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index a0005c75..85f00790 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -20,10 +20,10 @@ const config = { }, // Set the production url of your site here - url: 'https://langflow-ai.github.io', + url: 'https://docs.openr.ag', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: process.env.BASE_URL ? process.env.BASE_URL : '/openrag/', + baseUrl: process.env.BASE_URL ? process.env.BASE_URL : '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. diff --git a/docs/static/CNAME b/docs/static/CNAME new file mode 100644 index 00000000..5208db85 --- /dev/null +++ b/docs/static/CNAME @@ -0,0 +1 @@ +docs.openr.ag \ No newline at end of file From 2fc2a0ca03010d69e736ff13c12a6099f7b817b1 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Wed, 1 Oct 2025 17:47:23 -0300 Subject: [PATCH 2/3] fix: make config be on a volume (#170) * fixed docker compose cpu and normal with volume * changed config path * changed gitignore * added config example yaml --- .gitignore | 2 +- config/config.example.yaml | 15 +++++++++++++++ docker-compose-cpu.yml | 2 +- docker-compose.yml | 2 +- src/config/config_manager.py | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 config/config.example.yaml 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 0bcf66ac..9b0ff88b 100644 --- a/docker-compose-cpu.yml +++ b/docker-compose-cpu.yml @@ -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} diff --git a/docker-compose.yml b/docker-compose.yml index d7ac3ac3..34a5947f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/src/config/config_manager.py b/src/config/config_manager.py index 6e891c5c..da059d0d 100644 --- a/src/config/config_manager.py +++ b/src/config/config_manager.py @@ -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: From efb980b4b9e940c62888e32fdd8ba02524a51f24 Mon Sep 17 00:00:00 2001 From: Ronnie Miller Date: Wed, 1 Oct 2025 15:16:27 -0700 Subject: [PATCH 3/3] docs: Allow manually deploying to GitHub pages --- .github/workflows/deploy-gh-pages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index a665710d..eb1f737c 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -6,8 +6,7 @@ on: - main paths: - 'docs/**' - # Review gh actions docs if you want to further define triggers, paths, etc - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + workflow_dispatch: jobs: deploy: