From d6466db5a1b15c421cf30b5713a5490aee7213ef Mon Sep 17 00:00:00 2001 From: Mike Fortman Date: Wed, 26 Nov 2025 12:59:40 -0600 Subject: [PATCH] change documents directory --- docker-compose-cpu.yml | 2 +- docker-compose.yml | 2 +- docs/README.md | 4 ++-- docs/docs/core-components/knowledge.mdx | 2 +- docs/docs/get-started/docker.mdx | 2 +- docs/docs/get-started/quickstart.mdx | 2 +- docs/docs/reference/configuration.mdx | 2 +- docs/package.json | 2 +- docs/scraper.config.json | 2 +- {documents => openrag-documents}/docling.pdf | Bin .../ibm_anthropic.pdf | Bin .../openrag-documentation.pdf | Bin .../warmup_ocr.pdf | Bin src/main.py | 19 +++++++++++++++++- src/tui/main.py | 2 +- src/tui/managers/env_manager.py | 6 +++--- src/tui/screens/config.py | 2 +- tests/integration/test_startup_ingest.py | 2 +- 18 files changed, 34 insertions(+), 17 deletions(-) rename {documents => openrag-documents}/docling.pdf (100%) rename {documents => openrag-documents}/ibm_anthropic.pdf (100%) rename {documents => openrag-documents}/openrag-documentation.pdf (100%) rename {documents => openrag-documents}/warmup_ocr.pdf (100%) diff --git a/docker-compose-cpu.yml b/docker-compose-cpu.yml index c5cd15f3..be882429 100644 --- a/docker-compose-cpu.yml +++ b/docker-compose-cpu.yml @@ -81,7 +81,7 @@ services: - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} volumes: - - ./documents:/app/documents:Z + - ./openrag-documents:/app/documents:Z - ./keys:/app/keys:Z - ./flows:/app/flows:U,z diff --git a/docker-compose.yml b/docker-compose.yml index a74d3c12..e3fded53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -80,7 +80,7 @@ services: - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} volumes: - - ./documents:/app/documents:Z + - ./openrag-documents:/app/documents:Z - ./keys:/app/keys:Z - ./flows:/app/flows:U,z diff --git a/docs/README.md b/docs/README.md index 436d7830..bad5759c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -42,7 +42,7 @@ If you are using GitHub pages for hosting, this command is a convenient way to b ## Update the OpenRAG documentation PDF -The documentation PDF at `openrag/documents/openrag-documentation.pdf` is used by the OpenRAG application, so keep it up to date. +The documentation PDF at `openrag/openrag-documents/openrag-documentation.pdf` is used by the OpenRAG application, so keep it up to date. To update the PDF, do the following: @@ -68,7 +68,7 @@ To remove these items, give the following prompt or something similar to your ID 2. Check your `.mdx` files to confirm these elements are removed. Don't commit the changes. -3. From `openrag/docs`, run this command to build the site with the changes, and create a PDF at `openrag/documents`. +3. From `openrag/docs`, run this command to build the site with the changes, and create a PDF at `openrag/openrag-documents`. ``` npm run build:pdf diff --git a/docs/docs/core-components/knowledge.mdx b/docs/docs/core-components/knowledge.mdx index 80a997c2..63edbaa3 100644 --- a/docs/docs/core-components/knowledge.mdx +++ b/docs/docs/core-components/knowledge.mdx @@ -29,7 +29,7 @@ To configure the knowledge ingestion pipeline parameters, see [Docling Ingestion The **Knowledge Ingest** flow uses Langflow's [**File** component](https://docs.langflow.org/components-data#file) to split and embed files loaded from your local machine into the OpenSearch database. -The default path to your local folder is mounted from the `./documents` folder in your OpenRAG project directory to the `/app/documents/` directory inside the Docker container. Files added to the host or the container will be visible in both locations. To configure this location, modify the **Documents Paths** variable in either the TUI's [Advanced Setup](/install#setup) menu or in the `.env` used by Docker Compose. +The default path to your local folder is mounted from the `./openrag-documents` folder in your OpenRAG project directory to the `/app/documents/` directory inside the Docker container. Files added to the host or the container will be visible in both locations. To configure this location, modify the **Documents Paths** variable in either the TUI's [Advanced Setup](/install#setup) menu or in the `.env` used by Docker Compose. To load and process a single file from the mapped location, click **Add Knowledge**, and then click