OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
tui to cli and python version
April M23003fe2a29e
diff --git a/docs/docs/_partial-prereq-python.mdx b/docs/docs/_partial-prereq-python.mdxindex 3ca3fb491..59dc1320b 100644--- a/docs/docs/_partial-prereq-python.mdx+++ b/docs/docs/_partial-prereq-python.mdx@@ -1 +1 @@-* Install [Python](https://www.python.org/downloads/release/python-3100/) version 3.12 or later.\ No newline at end of file+* Install [Python](https://www.python.org/downloads/release/python-3100/) version 3.13.\ No newline at end of filediff --git a/docs/docs/_partial-setup.mdx b/docs/docs/_partial-setup.mdxindex b15592bd2..7b2512aa0 100644--- a/docs/docs/_partial-setup.mdx+++ b/docs/docs/_partial-setup.mdx@@ -2,30 +2,18 @@ import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';import PartialOAuthCredentials from '@site/docs/_partial-oauth-credentials.mdx';-1. In the TUI, click either **Basic Setup** or **Advanced Setup**.+1. In your OpenRAG terminal session, select the **Configure** option.- :::info- You must use **Advanced Setup** if you want to enable either [OAuth mode or cloud storage connectors](/knowledge-connectors) during initial set up:-- * **OAuth mode**: Controls document ownership and access in your OpenRAG [OpenSearch knowledge base](/knowledge).- Without OAuth mode, there is no differentiation between users; all users that access your OpenRAG instance can access and manage all uploaded documents.- * **Cloud storage connectors**: Enables ingestion of documents from external storage services.- :::-- If OpenRAG detects [OAuth or cloud storage connector credentials](/reference/configuration#oauth-and-cloud-storage-connector-settings) during setup, it recommends **Advanced Setup** in the TUI.-- You can also enable these features later.+2. Enter an administrator password for the OpenSearch service.-2. Enter administrator passwords for the OpenRAG OpenSearch and Langflow services.+ This password is required, and a secure password is automatically generated if you don't provide one manually.- The OpenSearch password is required, and a secure password is automatically generated if you don't provide one manually.+3. Enter an administrator password for the Langflow service.- The Langflow password is recommended but optional.+ This password is recommended but optional.If the Langflow password is empty, the Langflow server starts without authentication enabled. For more information, see [Langflow settings](/reference/configuration#langflow-settings).- You can click **Generate Password** to create a Langflow password and username automatically.--3. Optional: Under **API Keys**, enter your model provider credentials, or leave these fields empty if you want to configure model provider credentials during the application onboarding process.+4. At the **AI providers** prompt, you can either enter your model provider credentials now, or press <kbd>Enter</kbd> to configure these options later during application onboarding.There is no material difference between providing these values now or during the [application onboarding process](#application-onboarding).If you provide a credential now, it can be populated automatically during the application onboarding process if you enable the **Use environment API key** option.@@ -34,50 +22,62 @@ import PartialOAuthCredentials from '@site/docs/_partial-oauth-credentials.mdx';By default, OpenRAG uses OpenAI models.If you aren't sure which models or providers to use, you must provide an OpenAI API key to use OpenRAG's default model configuration.-4. **Advanced Setup** only: To enable OAuth mode or cloud storage connectors, do the following:+5. At the **Langfuse tracing** prompt, enter <kbd>Y</kbd> to enable the [Langflow integration with Langfuse](https://docs.langflow.org/integrations-langfuse); otherwise, enter <kbd>N</kbd>.+If you enter <kbd>Y</kbd>, provide the following Langfuse credentials:- 1. Register OpenRAG as an OAuth application in your cloud provider, and then obtain the app's OAuth credentials, such as a client ID and secret key. To enable multiple connectors, you must register an app and generate credentials for each provider.+ * **Langfuse Secret Key**: A secret key for your Langfuse project.+ * **Langfuse Public Key**: A public key for your Langfuse project.+ * **Langfuse Host**: Required for self-hosted Langfuse deployments. Leave empty for Langfuse Cloud.- 2. Enter the relevant OAuth credentials under **API Keys** in the TUI's **Advanced Setup**:+6. At the **Documents path** prompt, accept the default [local documents path](/ingestion-configure#set-the-local-documents-path), or provide a path to a directory where you want OpenRAG to look for documents to ingest into your [knowledge base](/knowledge).- <PartialOAuthCredentials />+7. At the **Cloud connectors and advanced settings** prompt, enter <kbd>Y</kbd> if you want to configure any of the following additional settings; otherwise, enter <kbd>N</kbd>.- The credentials can be populated automatically if OpenRAG detects these credentials in an [OpenRAG `.env` file](/reference/configuration) at `~/.openrag/tui`.+ :::info+ You must configure advanced settings if you want to enable either OAuth mode or cloud storage connectors during initial set up:- 3. Register the redirect URIs shown in the TUI in your OAuth apps.+ * **OAuth mode**: Controls document ownership and access in your OpenRAG [OpenSearch knowledge base](/knowledge).+ Without OAuth mode, there is no differentiation between users; all users that access your OpenRAG instance can access and manage all uploaded documents.+ * **Cloud storage connectors**: Enables ingestion of documents from external storage services.- The redirect URIs are used for the cloud storage connector webhooks. For Google, the redirect URIs are also used to redirect users back to OpenRAG after they sign in.+ You can also [configure these connectors](/knowledge-connector) later.+ :::-5. Optional: Under **Langfuse (Tracing)**, enter Langfuse credentials to enable the [Langflow integration with Langfuse](https://docs.langflow.org/integrations-langfuse):+ * **OAuth mode and cloud storage connectors**: To configure one or more of these connectors, do the following:- * **Langfuse Secret Key**: A secret key for your Langfuse project.- * **Langfuse Public Key**: A public key for your Langfuse project.- * **Langfuse Host**: Required for self-hosted Langfuse deployments. Leave empty for Langfuse Cloud.+ 1. Register OpenRAG as an OAuth application in your cloud provider, and then obtain the app's OAuth credentials, such as a client ID and secret key. To enable multiple connectors, you must register an app and generate credentials for each provider.-6. Optional: Under **Others**, you can edit the following settings if needed:+ 2. In your OpenRAG terminal session, enter the relevant [OAuth credentials](/reference/configuration#oauth-and-cloud-storage-connector-settings) for the cloud connector prompts:- * **Documents Paths**: Set the [local documents path](/ingestion-configure#set-the-local-documents-path). Use the default path, or provide a path to a directory where you want OpenRAG to look for documents to ingest into your [knowledge base](/knowledge).- * **OpenSearch Data Path**: Use the default path, or specify the path where you want OpenRAG to create your OpenSearch index.- * **Langflow Public URL (Advanced Setup only)** : Sets the base address to access the Langflow web interface where users interact with the Langflow editor in a browser. You must set this value to run Langflow on a non-default port (`7860`)- * **Webhook Base URL (Advanced Setup only)**: If you entered OAuth credentials, you can set the base address for your OAuth connector endpoints. If set, the OAuth connector webhook URLs are constructed as `WEBHOOK_BASE_URL/connectors/${provider}/webhook`. This option is required to enable automatic ingestion from cloud storage.+ <PartialOAuthCredentials />-7. Click **Save Configuration**.+ The credentials can be populated automatically if OpenRAG detects these credentials in an [OpenRAG `.env` file](/reference/configuration) at `~/.openrag/tui`.- Your passwords, API key, and OAuth credentials (if provided) are stored in the [OpenRAG `.env` file](/reference/configuration) at `~/.openrag/tui`.- If you modified any credentials that were pulled from an existing `.env` file, those values are updated in the `.env` file.+ 3. Register the redirect URIs shown in the terminal in your OAuth apps.-8. Click **Start OpenRAG** to start the OpenRAG services.+ The redirect URIs are used for the cloud storage connector webhooks. For Google, the redirect URIs are also used to redirect users back to OpenRAG after they sign in.++ * **Webhook Base URL**: If you entered OAuth credentials, you can set the base address for your OAuth connector endpoints. If set, the OAuth connector webhook URLs are constructed as `WEBHOOK_BASE_URL/connectors/${provider}/webhook`. This option is required to enable automatic ingestion from cloud storage.++ * **OpenSearch Data Path**: Use the default path, or specify the path where you want OpenRAG to create your OpenSearch index.++ * **Langflow Public URL** : Sets the base address to access the Langflow web interface where users interact with the Langflow editor in a browser. You must set this value if you want to run Langflow on a non-default port (`7860`)++8. At the `Start services now?` prompt, press <kbd>Y</kbd> to start the OpenRAG services.This process can take some time while OpenRAG pulls and runs the container images.- If all services start successfully, the TUI prints a confirmation message:+ If all services start successfully, the terminal prints a confirmation message:```text- Services started successfully- Command completed successfully+ Services are running.```-9. Click **Close**, and then click **Launch OpenRAG** or navigate to `localhost:3000` in your browser.+ :::tip OpenRAG .env file+ Your configuration and credentials are stored in the [OpenRAG `.env` file](/reference/configuration) at `~/.openrag/tui`.+ If you modified any credentials that were pulled from an existing `.env` file, those values are updated in the `.env` file.+ :::- If you provided Google OAuth credentials, you must sign in with Google before you are redirected to your OpenRAG instance.+9. Select the **Open OpenRAG in browser** option to launch the OpenRAG application and start the [application onboarding process](#application-onboarding).+You can also manually navigate to `localhost:3000` in a browser.-10. Continue with the [application onboarding process](#application-onboarding).\ No newline at end of file+ If you provided Google OAuth credentials, you must sign in with Google before you are redirected to your OpenRAG instance.\ No newline at end of filediff --git a/docs/docs/_partial-start-tui.mdx b/docs/docs/_partial-start-tui.mdxnew file mode 100644index 000000000..3363d02b2--- /dev/null+++ b/docs/docs/_partial-start-tui.mdx@@ -0,0 +1,3 @@+:::tip+For a GUI terminal experience, use the `--tui` flag when starting OpenRAG.+:::\ No newline at end of filediff --git a/docs/docs/core-components/ingestion-configure.mdx b/docs/docs/core-components/ingestion-configure.mdxindex a6888ad55..dcb1052ad 100644--- a/docs/docs/core-components/ingestion-configure.mdx+++ b/docs/docs/core-components/ingestion-configure.mdx@@ -35,8 +35,8 @@ When you start OpenRAG, a local `docling serve` process starts, and then OpenRAGTo use a remote `docling serve` instance or your own local instance, set `DOCLING_SERVE_URL=http://HOST_IP:5001` in your [OpenRAG `.env` file](/reference/configuration#document-processing-settings).The service must run on port 5001.- For TUI-managed deployments, The TUI warns you if `docling serve` isn't running or isn't detected by OpenRAG.- For information about starting and stopping OpenRAG services, see [Manage OpenRAG services](/manage-services).+ For terminal-managed deployments, the OpenRAG terminal session can alert you if `docling serve` isn't running or isn't detected by OpenRAG.+ You can also use the terminal's **Show status** option to [inspect and manage the OpenRAG services](/manage-services).* **Docling processor ingestion**: Instead of using a separate Docling Serve service and the Docling Serve API, you can use the Docling processor directly.To do this, set `DISABLE_INGEST_WITH_LANGFLOW=true` in your [OpenRAG `.env` file](/reference/configuration#document-processing-settings), and then [restart the OpenRAG services](/manage-services).diff --git a/docs/docs/core-components/knowledge-connectors.mdx b/docs/docs/core-components/knowledge-connectors.mdxindex de5abc31a..ebde00bd3 100644--- a/docs/docs/core-components/knowledge-connectors.mdx+++ b/docs/docs/core-components/knowledge-connectors.mdx@@ -44,28 +44,37 @@ To enable multiple connectors, you must register an app and generate credentials### Add OAuth credentials to OpenRAG<Tabs>-<TabItem value="TUI" label="TUI-managed services" default>+<TabItem value="TUI" label="Terminal-managed services" default>-If you use the [Terminal User Interface (TUI)](/tui) to manage your OpenRAG services, enter OAuth credentials on the **Advanced Setup** page.+If you use an [OpenRAG terminal session](/tui) to manage your OpenRAG services, enter OAuth credentials at the **Cloud connectors and advanced settings** prompt.You can do this during [installation](/install-uvx#setup), or you can add the credentials afterwards:-1. If OpenRAG is running, click **Stop All Services** in the TUI.+1. If OpenRAG is running, select the **Stop services** option in the terminal.-2. Open the **Advanced Setup** page, and then add the OAuth credentials for the cloud storage providers that you want to use under **API Keys**:+2. After the services stop, select the **Reconfigure** option.++3. Accept the existing configuration for the admin passwords and AI provider prompts.++4. At the **Cloud connectors and advanced settings** prompt, enter <kbd>Y</kbd>.++5. At the relevant prompts, enter the OAuth credentials for the cloud storage providers that you want to use:<PartialOAuthCredentials />-3. For each connector you configured, register the redirect URIs shown in the TUI in your OAuth apps.+6. For each connector you configured, register the redirect URIs shown in the terminal in your OAuth apps.The redirect URIs are used for the cloud storage connector webhooks. For Google, the redirect URIs are also used to redirect users back to OpenRAG after they sign in.-4. Optional: Under **Others**, set the **Webhook Base URL** to the base address for your OAuth connector endpoints. If set, the OAuth connector webhook URLs are constructed as `WEBHOOK_BASE_URL/connectors/${provider}/webhook`. This option is required to enable automatic ingestion from cloud storage.+7. Optional: Set the **Webhook Base URL** to the base address for your OAuth connector endpoints. If set, the OAuth connector webhook URLs are constructed as `WEBHOOK_BASE_URL/connectors/${provider}/webhook`. This option is required to enable automatic ingestion from cloud storage.+Alternatively, you can use the default base URL.-5. Click **Save Configuration** to add the OAuth credentials to your [OpenRAG `.env` file](/reference/configuration).+8. Accept the existing configuration for the rest of the advanced settings until you see a `Configuration saved` message.+OpenRAG saves your OAuth credentials to your [OpenRAG `.env` file](/reference/configuration).-6. Click **Start Services** to restart the OpenRAG containers with the new configuration.+9. At the `Start services now?` prompt, press <kbd>Y</kbd> to start the OpenRAG services with the new configuration.-7. Launch the OpenRAG app.+10. When you see the `Services are running` message, select the **Open OpenRAG in browser** option to launch the OpenRAG app.+You can also manually navigate to `localhost:3000` in a browserIf you provided Google OAuth credentials, you must sign in with Google before you are redirected to your OpenRAG instance.diff --git a/docs/docs/get-started/docker.mdx b/docs/docs/get-started/docker.mdxindex 581f2907d..8a1272957 100644--- a/docs/docs/get-started/docker.mdx+++ b/docs/docs/get-started/docker.mdx@@ -20,7 +20,7 @@ import PartialOAuthCredentials from '@site/docs/_partial-oauth-credentials.mdx';To manage your own OpenRAG services, deploy OpenRAG with Docker or Podman.-Use this installation method if you don't want to [use the Terminal User Interface (TUI)](/tui), or you need to run OpenRAG in an environment where using the TUI is unfeasible.+Use this installation method if you don't want to [use an OpenRAG terminal session](/tui), or you need to run OpenRAG in an environment where terminal interaction is unavailable.## Prerequisitesdiff --git a/docs/docs/get-started/install-options.mdx b/docs/docs/get-started/install-options.mdxindex 5f54ed478..b9ac4480b 100644--- a/docs/docs/get-started/install-options.mdx+++ b/docs/docs/get-started/install-options.mdx@@ -8,7 +8,7 @@ Depending on your use case, OpenRAG can assist with service management, or you cSelect the installation method that best fits your needs:-* **Use the [Terminal User Interface (TUI)](/tui) to manage services**: For guided configuration and simplified service management, install OpenRAG with TUI-managed services. Use one of the following options:+* **Use an [OpenRAG terminal session](/tui) to manage services**: For guided configuration and simplified service management, install OpenRAG with terminal-managed services. Use one of the following options:* [**`uv`**](/install-uv): Install OpenRAG as a dependency of a new or existing Python project.* [**`uvx`**](/install-uvx): Install OpenRAG without creating a project or modifying your project's dependencies. This option also automatically installs Docker or Podman if neither is present in your environment.@@ -23,11 +23,11 @@ Select the installation method that best fits your needs:The first time you start OpenRAG, you must complete the application onboarding process.This is required for all installation methods because it prepares the minimum required configuration for OpenRAG to run.-For TUI-managed services, you must also complete initial setup before you start the OpenRAG services.+For terminal-managed services, you must also complete initial setup before you start the OpenRAG services.For more information, see the instructions for your preferred installation method.Your OpenRAG configuration is stored in a `.env` file.-When using TUI-managed services, this file is created automatically at `~/.openrag/tui`, or you can provide a pre-populated `.env` file in this directory before starting the TUI.-The TUI prompts you for the required values during setup and onboarding, and any values detected in a preexisting `.env` file are populated automatically.+When using terminal-managed services, this file is created automatically at `~/.openrag/tui`, or you can provide a pre-populated `.env` file in this directory before starting the terminal session.+The terminal session prompts you for the required values during setup and onboarding, and any values detected in a preexisting `.env` file are populated automatically.When using self-managed services, you must provide a pre-populated `.env` file, as you would for any Docker or Podman deployment.For more information, see the instructions for your preferred installation method and the [OpenRAG environment variables reference](/reference/configuration).\ No newline at end of filediff --git a/docs/docs/get-started/install-uv.mdx b/docs/docs/get-started/install-uv.mdxindex 05f6e0bb6..42d09a490 100644--- a/docs/docs/get-started/install-uv.mdx+++ b/docs/docs/get-started/install-uv.mdx@@ -17,10 +17,11 @@ import PartialPrereqPython from '@site/docs/_partial-prereq-python.mdx';import PartialInstallNextSteps from '@site/docs/_partial-install-next-steps.mdx';import PartialOllamaModels from '@site/docs/_partial-ollama-models.mdx';import PartialWatsonxModels from '@site/docs/_partial-watsonx-models.mdx';+import PartialStartTui from '@site/docs/_partial-start-tui.mdx';Use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) to install OpenRAG as a managed or unmanaged dependency in a new or existing Python project.-When you install OpenRAG with `uv`, you will use the [Terminal User Interface (TUI)](/tui) to configure and manage your OpenRAG deployment.+When you install OpenRAG with `uv`, you will use an [OpenRAG terminal session](/tui) to configure and manage your OpenRAG deployment.For other installation methods, see [Select an installation method](/install-options).@@ -54,12 +55,11 @@ If you encounter errors during installation, see [Troubleshoot OpenRAG](/support1. Create a new `uv`-managed Python project:```bash- uv init PROJECT_NAME --python 3.12+ uv init PROJECT_NAME --python 3.13```The `--python` flag ensures that your project uses the minimum required Python version for OpenRAG.- You can use a later Python version, if you prefer.- Or, you can omit this flag if your system's default Python version is 3.12 or later.+ You can omit this flag if your system's default Python version is 3.13.2. Change into your new project directory:@@ -94,12 +94,14 @@ If you encounter errors during installation, see [Troubleshoot OpenRAG](/support4. Optional: If you want to use a pre-populated [OpenRAG `.env` file](/reference/configuration), create one at `~/.openrag/tui` before starting OpenRAG.-5. Start the OpenRAG TUI:+5. Start the OpenRAG terminal session:```bashuv run openrag```+ <PartialStartTui />+### Use uv pip install {#uv-pip-install}1. Activate your virtual environment.@@ -112,19 +114,21 @@ If you encounter errors during installation, see [Troubleshoot OpenRAG](/support3. Optional: If you want to use a pre-populated [OpenRAG `.env` file](/reference/configuration), create one at `~/.openrag/tui` before starting OpenRAG.-4. Start the OpenRAG TUI:+4. Start the OpenRAG terminal session:```bashuv run openrag```-## Set up OpenRAG with the TUI {#setup}+ <PartialStartTui />++## Configure OpenRAG in the terminal {#setup}-When you install OpenRAG with `uv`, you manage the OpenRAG services with the TUI.-The TUI guides you through the initial configuration process before you start the OpenRAG services.+When you install OpenRAG with `uv`, you manage the OpenRAG services in an OpenRAG terminal session.+The terminal session guides you through the initial configuration process before you start the OpenRAG services.Your configuration values are stored in an [OpenRAG `.env` file](/reference/configuration) that is created automatically at `~/.openrag/tui`.-If OpenRAG detects an existing `.env` file in this directory, then the TUI can populate those values automatically during setup and onboarding.+If OpenRAG detects an existing `.env` file in this directory, then OpenRAG can populate those values automatically during setup and onboarding.Container definitions are stored in the `docker-compose` files in the same directory as the OpenRAG `.env` file.diff --git a/docs/docs/get-started/install-uvx.mdx b/docs/docs/get-started/install-uvx.mdxindex f137c4990..2c3679166 100644--- a/docs/docs/get-started/install-uvx.mdx+++ b/docs/docs/get-started/install-uvx.mdx@@ -16,13 +16,14 @@ import PartialPrereqPython from '@site/docs/_partial-prereq-python.mdx';import PartialInstallNextSteps from '@site/docs/_partial-install-next-steps.mdx';import PartialOllamaModels from '@site/docs/_partial-ollama-models.mdx';import PartialWatsonxModels from '@site/docs/_partial-watsonx-models.mdx';+import PartialStartTui from '@site/docs/_partial-start-tui.mdx';Use [`uvx`](https://docs.astral.sh/uv/guides/tools/#running-tools) to invoke OpenRAG outside of a Python project or without modifying your project's dependencies.This installation method is best for testing OpenRAG by running it outside of a Python project.For other installation methods, see [Select an installation method](/install-options).-When you install OpenRAG with `uvx`, you will use the [Terminal User Interface (TUI)](/tui) to configure and manage your OpenRAG deployment.+When you install OpenRAG with `uvx`, you will use an [OpenRAG terminal session](/tui) to configure and manage your OpenRAG deployment.:::info`uvx openrag` installs the latest version of OpenRAG and dependencies, like Docker or Podman, if they aren't already present in your environment.@@ -54,30 +55,32 @@ When you install OpenRAG with `uvx`, you will use the [Terminal User Interface (3. Invoke OpenRAG and install any missing dependencies:```bash- uvx openrag+ uvx openrag --python 3.13```You can invoke a specific version using any of the [`uvx` version specifiers](https://docs.astral.sh/uv/guides/tools/#requesting-specific-versions), such as `uvx --from openrag==0.1.30 openrag`.+ <PartialStartTui />+4. If needed, respond to any prompts to install and configure dependencies like Docker or Podman.The entire setup process can take a few minutes.-Once the environment is ready, the OpenRAG [Terminal User Interface (TUI)](/tui) starts.+Once the environment is ready, the OpenRAG terminal session starts.-Invoking OpenRAG with `uvx openrag` creates a cached, ephemeral environment for the TUI in your local `uv` cache.+Invoking OpenRAG with `uvx openrag` creates a cached, ephemeral environment for the terminal session in your local `uv` cache.Your OpenRAG configuration files and data are stored in `~/.openrag`, which is separate from the `uv` cache.Clearing the `uv` cache doesn't remove your entire OpenRAG installation; it only clears `uv` dependencies.-After clearing the cache, you can re-invoke OpenRAG (`uvx openrag`) to restart the TUI with your preserved configuration and data.+After clearing the cache, you can re-invoke OpenRAG (`uvx openrag`) to restart the terminal session with your preserved configuration and data.If you encounter errors during installation, see [Troubleshoot OpenRAG](/support/troubleshoot).-## Set up OpenRAG with the TUI {#setup}+## Configure OpenRAG in the terminal {#setup}-When you install OpenRAG with `uvx`, you manage the OpenRAG services with the TUI.-The TUI guides you through the initial configuration process before you start the OpenRAG services.+When you install OpenRAG with `uvx`, you manage the OpenRAG services in an OpenRAG terminal session.+The terminal session guides you through the initial configuration process before you start the OpenRAG services.Your configuration values are stored in an [OpenRAG `.env` file](/reference/configuration) that is created automatically at `~/.openrag/tui`.-If OpenRAG detects an existing `.env` file in this directory, then the TUI can populate those values automatically during setup and onboarding.+If OpenRAG detects an existing `.env` file in this directory, then OpenRAG can populate those values automatically during setup and onboarding.Container definitions are stored in the `docker-compose` files in the same directory as the OpenRAG `.env` file.diff --git a/docs/docs/get-started/manage-services.mdx b/docs/docs/get-started/manage-services.mdxindex 35ce5e3f6..70a17a3f0 100644--- a/docs/docs/get-started/manage-services.mdx+++ b/docs/docs/get-started/manage-services.mdx@@ -15,18 +15,16 @@ Service management is an essential part of maintaining your OpenRAG deployment.Most OpenRAG services run in containers.However, some services, like Docling, run directly on the local machine.-If you [installed OpenRAG](/install-options) with `uv` or `uvx`, then you can use the [Terminal User Interface (TUI)](/tui) to manage your OpenRAG configuration and services.+If you [installed OpenRAG](/install-options) with `uv` or `uvx`, then you can use an [OpenRAG terminal session](/tui) to manage your OpenRAG configuration and services.For [self-managed deployments](/docker), run Docker or Podman commands to manage your OpenRAG services.## Monitor services and view logs<Tabs>-<TabItem value="TUI" label="TUI-managed services" default>+<TabItem value="TUI" label="Terminal-managed services" default>-In the TUI, click **Status** to access diagnostics and controls for all OpenRAG services, including container health, ports, and image versions.--To view streaming logs, click the name of a service, and then press <kbd>l</kbd>.+In the terminal session, select the **Show status** option to access diagnostics and controls for all OpenRAG services, including container health, ports, image versions, and streaming logs.For the Docling native service, see [Stop, start, and inspect native services](#start-native-services).@@ -43,20 +41,20 @@ For the Docling native service, see [Stop, start, and inspect native services](### Stop and start containers<Tabs>-<TabItem value="TUI" label="TUI-managed services" default>+<TabItem value="TUI" label="Terminal-managed services" default>-On the TUI's **Status** page, you can stop, start, and restart OpenRAG's container-based services.+In the terminal session, select the **Show status** option to stop, start, and restart OpenRAG's container-based services.-You can also use the **Start OpenRAG** option on the TUI's main menu to start all services at once.+You can also use the terminal's **Start services** option to start all services at once.:::tipA Docker or Podman VM must be running before you start OpenRAG.:::<details>-<summary>How does the TUI start the containers?</summary>+<summary>How does the terminal session start the containers?</summary>-When you click **Restart** or **Start Services** in the TUI, the following processes are triggered:+When you restart or start services in the terminal session, the following processes are triggered:1. OpenRAG automatically detects your container runtime, and then checks if your machine has compatible GPU support by checking for `CUDA`, `NVIDIA_SMI`, and Docker/Podman runtime support. This check determines which Docker Compose file OpenRAG uses because there are separate Docker Compose files for GPU and CPU deployments.@@ -67,7 +65,7 @@ When you click **Restart** or **Start Services** in the TUI, the following proce</details>Alternatively, you can manually run the Docker/Podman commands to stop and start containers.-Typically, this is only necessary if there is an error preventing the TUI from managing the containers.+Typically, this is only necessary if there is an error preventing the terminal session from managing the containers.* Stop all containers: [`docker compose down`](https://docs.docker.com/reference/cli/docker/compose/down/) or `podman compose down`* Start all containers: [`docker compose up -d`](https://docs.docker.com/reference/cli/docker/compose/up/) or `podman compose up -d`@@ -92,15 +90,14 @@ For self-managed deployments, run the Docker/Podman commands to stop and start cA _native service_ in OpenRAG is a service that runs locally on your machine, not within a container. For example, the `docling serve` process is an OpenRAG native service because this document processing service runs on your local machine, separate from the OpenRAG containers.<Tabs>-<TabItem value="TUI" label="TUI-managed services" default>+<TabItem value="TUI" label="Terminal-managed services" default>-On the TUI's **Status** page, you can stop, start, restart, and inspect OpenRAG's native services.+In the terminal session, select the **Show status** option to stop, start, restart, and inspect OpenRAG's native services.The **Native Services** section lists the status, port, and process ID (PID) for each native service.-To manage a native service, click the service's name, and then click **Stop**, **Start** or **Restart**.--To view the logs for a native service, click the service's name, and then press <kbd>l</kbd>.+To manage a native service, select the option to **Stop**, **Start** or **Restart** that service.+You can also view logs for native services.</TabItem><TabItem value="env" label="Self-managed services">@@ -153,13 +150,13 @@ Your documents are reingested into a fresh OpenSearch index after the reset.To reset your OpenRAG deployment _and_ delete all OpenRAG data, see [Reinstall OpenRAG](/reinstall).<Tabs>-<TabItem value="TUI" label="TUI-managed services" default>+<TabItem value="TUI" label="Terminal-managed services" default><PartialExportFlows />-2. To destroy and recreate your OpenRAG containers, click **Status** in the TUI, and then click **Factory Reset**.+2. To destroy and recreate your OpenRAG containers, select the **Show status** option in the terminal session, and then select the **Factory Reset** option.-3. Repeat the [setup process](/install-uvx#setup) to restart the services and launch the OpenRAG app. Your OpenRAG passwords, OAuth credentials (if previously set), and onboarding configuration are restored from the `.env` file.+3. Repeat the [setup process](/install-uvx#setup) to restart the services and launch the OpenRAG app. Your previous configuration, including credentials, are restored from the `.env` file.4. If you exported customized flows, [import your flows](https://docs.langflow.org/concepts-flows-import) into Langflow after completing the onboarding process.@@ -189,7 +186,7 @@ To reset your OpenRAG deployment _and_ delete all OpenRAG data, see [Reinstall OUse image pruning to free up disk space by removing unused OpenRAG container images.-For TUI-managed services, use the TUI's **Prune Images** option to clean up your OpenRAG container images.+For terminal-managed services, use the terminal's **Prune Images** option to clean up your OpenRAG container images.You can choose to prune unused images only or all images.If you prune all images, the OpenRAG services are stopped, all images are pruned, and then the required images are pulled the next time you start the OpenRAG services.diff --git a/docs/docs/get-started/quickstart.mdx b/docs/docs/get-started/quickstart.mdxindex bac858b74..5eb4b0de5 100644--- a/docs/docs/get-started/quickstart.mdx+++ b/docs/docs/get-started/quickstart.mdx@@ -39,43 +39,36 @@ This quickstart installs OpenRAG with [`uvx`](https://docs.astral.sh/uv/guides/t2. Install OpenRAG and its dependencies with `uvx`.```bash- uvx openrag+ uvx openrag --python 3.13```You might be prompted to install certain dependencies if they aren't already present in your environment.The entire process can take a few minutes.- Once the environment is ready, the OpenRAG [Terminal User Interface (TUI)](/tui) starts.-- -If you encounter errors during installation, see [Troubleshoot OpenRAG](/support/troubleshoot).-3. In the TUI, click **Basic Setup**.--4. For **Langflow Admin Password**, click **Generate Password** to create a Langflow administrator password and username.+3. Once the environment is ready, and the OpenRAG terminal session starts, select the **Configure** option.-5. For all other fields, use the default values or leave them empty.+4. For the OpenSearch and Langflow **Admin password** prompts, autogenerate or manually enter passwords.-6. Click **Save Configuration**.+5. For this quickstart, skip or press <kbd>N</kbd> for all remaining configuration prompts to use the default values.Your OpenRAG configuration and passwords are stored in an [OpenRAG `.env` file](/reference/configuration) file that is created automatically at `~/.openrag/tui`.OpenRAG container definitions are stored in the `docker-compose` files in the same directory.-7. Click **Start OpenRAG** to start the OpenRAG services.+6. At the `Start services now?` prompt, press <kbd>Y</kbd> to start the OpenRAG services.This process can take some time while OpenRAG pulls and runs the container images.- If all services start successfully, the TUI prints a confirmation message:+ If all services start successfully, the terminal prints a confirmation message:```text- Services started successfully- Command completed successfully+ Services are running.```-8. Click **Close**, and then click **Launch OpenRAG** to access the OpenRAG application and start the application onboarding process.+7. Select the **Open OpenRAG in browser** option to launch the OpenRAG application and start the application onboarding process.-9. For this quickstart, select the **OpenAI** model provider, enter your OpenAI API key, and then click **Complete**. Use the default settings for all other model options.+8. For this quickstart, select the **OpenAI** model provider, enter your OpenAI API key, and then click **Complete**. Use the default settings for all other model options.-10. Click through the onboarding chat for a brief introduction to OpenRAG, or click <Icon name="ArrowRight" aria-hidden="true"/> **Skip overview**.+9. Click through the onboarding chat for a brief introduction to OpenRAG, or click <Icon name="ArrowRight" aria-hidden="true"/> **Skip overview**.You can complete this quickstart without going through the overview.The overview demonstrates some basic functionality that is covered in the next section and in other parts of the OpenRAG documentation.diff --git a/docs/docs/get-started/reinstall.mdx b/docs/docs/get-started/reinstall.mdxindex 5adf407ac..5b1c83f3d 100644--- a/docs/docs/get-started/reinstall.mdx+++ b/docs/docs/get-started/reinstall.mdx@@ -17,27 +17,27 @@ These are destructive operations that reset your OpenRAG deployment to an initiaDestroyed containers and deleted data are lost and cannot be recovered after running these operations.:::-## Reinstall TUI-managed containers+## Reinstall terminal-managed containers<PartialExportFlows />-2. In the TUI, click **Status**, and then click **Factory Reset** to [reset your OpenRAG containers](/manage-services#reset-containers).+2. In your OpenRAG terminal session, select the **Status** option, and then select the **Factory Reset** option to [reset your OpenRAG containers](/manage-services#reset-containers).<PartialFactorResetWarning />-3. Press <kbd>Esc</kbd> to close the **Status** page, and then press <kbd>q</kbd> to exit the TUI.+3. Exit the terminal session.4. Optional: Delete or edit [OpenRAG's `.env` file](/reference/configuration), which is stored at `~/.openrag/tui`.- This file contains your OpenRAG configuration, including OpenRAG passwords, API keys, OAuth credentials, and other environment variables. If you delete this file, the TUI automatically generates a new one after you repeat the setup and onboarding process. If you preserve this file, the TUI can read values from the existing `.env` file during setup and onboarding.+ This file contains your OpenRAG configuration, including OpenRAG passwords, API keys, OAuth credentials, and other environment variables. If you delete this file, OpenRAG automatically generates a new one after you repeat the setup and onboarding process. If you preserve this file, OpenRAG can read values from the existing `.env` file during setup and onboarding.5. Optional: Remove any files from the `~/.openrag/documents` subdirectory that you don't want to reingest after redeploying the containers.It is recommended that you preserve OpenRAG's [default documents](https://github.com/langflow-ai/openrag/tree/main/openrag-documents).-6. Restart the TUI with `uv run openrag` or `uvx openrag`.+6. Run OpenRAG with `uv run openrag` or `uvx openrag`.7. Repeat the [setup process](/install-uvx#setup) to configure OpenRAG and restart all services.-Then, launch the OpenRAG app and repeat the [application onboarding process](/install-uvx#application-onboarding).+Then, open OpenRAG in your browser and repeat the [application onboarding process](/install-uvx#application-onboarding).## Reinstall self-managed containers with `docker compose` or `podman compose`diff --git a/docs/docs/get-started/tui.mdx b/docs/docs/get-started/tui.mdxindex c62efbc1f..aeb57f443 100644--- a/docs/docs/get-started/tui.mdx+++ b/docs/docs/get-started/tui.mdx@@ -1,29 +1,32 @@----title: Use the TUI+title: Use the OpenRAG terminalslug: /tui---import PartialGpuModeTip from '@site/docs/_partial-gpu-mode-tip.mdx';-The OpenRAG Terminal User Interface (TUI) provides a simplified and guided experience for configuring, managing, and monitoring your OpenRAG deployment directly from the terminal.+The OpenRAG terminal session provides a simplified and guided experience for configuring, managing, and monitoring your OpenRAG deployment directly from the terminal.---If you install OpenRAG with [`uv`](/install-uv) or [`uvx`](/install-uvx), you use the TUI to manage your OpenRAG deployment.-The TUI guides you through the initial setup, automatically manages your OpenRAG `.env` and `docker-compose` files, and provides convenient access to [service management](/manage-services) controls.+If you install OpenRAG with [`uv`](/install-uv) or [`uvx`](/install-uvx), you use an OpenRAG terminal session to manage your OpenRAG deployment.+The terminal session guides you through the initial setup, automatically manages your OpenRAG `.env` and `docker-compose` files, and provides convenient access to [service management](/manage-services) controls.In contrast, when you [deploy OpenRAG with self-managed services](/docker), you must manually configure OpenRAG by preparing a `.env` file, and then use Docker or Podman commands to deploy and manage your OpenRAG services.-## Access the TUI {#access-the-tui}+## Start a terminal session {#access-the-tui}++If you installed OpenRAG with `uv`, start a terminal session with `uv run openrag`.-If you installed OpenRAG with `uv`, access the TUI with `uv run openrag`.+If you installed OpenRAG with `uvx`, start a terminal session with `uvx openrag`.-If you installed OpenRAG with `uvx`, access the TUI with `uvx openrag`.+### Start a GUI terminal session-You can navigate the TUI with your mouse or keyboard.-Keyboard shortcuts for additional menus are printed at the bottom of the TUI screen.+For a GUI terminal experience, start OpenRAG with the `--tui` flag.++The GUI terminal, also known as the Terminal User Interface (TUI), provides the same options as the CLI terminal session with added support for mouse navigation and button-like controls for a more visual and interactive experience.++-## Manage services with the TUI+## Manage services with the terminal:::tipA Docker or Podman VM must be running before you start OpenRAG.@@ -31,17 +34,17 @@ A Docker or Podman VM must be running before you start OpenRAG.For example, on macOS with Podman, open the Podman Desktop app before you start OpenRAG.:::-In the TUI, click **Start OpenRAG** to start the OpenRAG services.+Use the terminal's **Start services** option to start the OpenRAG services.-Use the TUI's **Status** page to access controls and information for your OpenRAG services.+Use the terminal's **Show status** option to access controls and information for the OpenRAG services.For more information, see [Manage OpenRAG services](/manage-services).## Toggle GPU/CPU mode-You can toggle between GPU and CPU mode from within the TUI if your system has compatible GPU hardware and drivers installed.+You can toggle between GPU and CPU mode from within the terminal session if your system has compatible GPU hardware and drivers installed.-In the TUI, click **Status**, and then click **Switch to GPU Mode** or **Switch to CPU Mode**.+In the terminal session, select the **Show status** option, and then select the **Switch to GPU Mode** or **Switch to CPU Mode** option.This change requires restarting all OpenRAG services because each mode has its own `docker-compose` file.@@ -49,11 +52,11 @@ This change requires restarting all OpenRAG services because each mode has its o<PartialGpuModeTip />:::-## Exit the OpenRAG TUI+## Exit the OpenRAG terminal-To exit the OpenRAG TUI, press <kbd>q</kbd> on the TUI main page.+To exit the OpenRAG terminal session, select the **Exit** option from the terminal menu, or quit the process (<kbd>Cmd</kbd>+<kbd>C</kbd> on macOS).-Exiting the TUI doesn't stop your OpenRAG services.-Your OpenRAG services continue to run until they are stopped from within the TUI or by another process that inadvertently stops them.+Exiting the terminal session doesn't stop your OpenRAG services.+Your OpenRAG services continue to run until they are stopped from within the terminal session or by another process that inadvertently stops them.-To restart the TUI, see [Access the TUI](#access-the-tui).\ No newline at end of file+To restart the terminal session, see [Start a terminal session](#access-the-tui).\ No newline at end of filediff --git a/docs/docs/get-started/uninstall.mdx b/docs/docs/get-started/uninstall.mdxindex 1a123e406..f64f4fce1 100644--- a/docs/docs/get-started/uninstall.mdx+++ b/docs/docs/get-started/uninstall.mdx@@ -11,9 +11,9 @@ import PartialDockerRemoveAndCleanupSteps from '@site/docs/_partial-docker-removIf you want to reset your OpenRAG containers without removing OpenRAG entirely, see [Reset OpenRAG containers](/manage-services) and [Reinstall OpenRAG](/reinstall).:::-## Uninstall TUI-managed deployments+## Uninstall terminal-managed deployments-If you used [`uvx`](/install-uvx) to install OpenRAG, clear your `uv` cache (`uv cache clean`) to remove the TUI environment, and then delete the `~/.openrag` directory.+If you used [`uvx`](/install-uvx) to install OpenRAG, clear your `uv` cache (`uv cache clean`), and then delete the `~/.openrag` directory.If you used [`uv`](/install-uv) to install OpenRAG, run `uv remove openrag` in your Python project, and then delete the `~/.openrag` directory.diff --git a/docs/docs/get-started/upgrade.mdx b/docs/docs/get-started/upgrade.mdxindex ee061a9a3..1c475b24c 100644--- a/docs/docs/get-started/upgrade.mdx+++ b/docs/docs/get-started/upgrade.mdx@@ -14,21 +14,22 @@ Use these steps to upgrade your OpenRAG deployment to the latest version or a spIf you modified the built-in flows or created custom flows in your OpenRAG Langflow instance, [export your flows](https://docs.langflow.org/concepts-flows-import) before upgrading.This ensure that you won't lose your flows after upgrading, and you can reference the exported flows if there are any breaking changes in the new version.-## Upgrade TUI-managed deployments+## Upgrade terminal-managed deploymentsTo upgrade OpenRAG, you need to upgrade the OpenRAG Python package, and then upgrade the OpenRAG containers.Upgrading the Python package also upgrades Docling by bumping the dependency in `pyproject.toml`.-This is a two-part process because upgrading the OpenRAG Python package updates the Terminal User Interface (TUI) and Python code, but the container versions are controlled by environment variables in your [OpenRAG `.env` file](/reference/configuration).+This is a two-part process because upgrading the OpenRAG Python package updates the OpenRAG terminal and Python code, but the container versions are controlled by environment variables in your [OpenRAG `.env` file](/reference/configuration).<PartialExportFlows />-2. To check for updates, click **Status** in the TUI, and then click **Upgrade**.+2. To check for updates in the terminal session, select the **Show status** option, and then select the **Upgrade** option.-3. If there is an update available, press <kbd>Esc</kbd> to close the **Status** page, then then click **Stop All Services**.+3. If there is an update available, select the **Stop services** option.+You might need to exit the **Show status** submenu to access the **Stop services** option in the main menu.-4. Press <kbd>q</kbd> to exit the TUI.+4. Exit the terminal session.5. Upgrade the OpenRAG Python package to the latest version from [PyPI](https://pypi.org/project/openrag/).The commands to upgrade the package depend on how you installed OpenRAG.@@ -79,7 +80,7 @@ The commands to upgrade the package depend on how you installed OpenRAG.uv add --upgrade openrag==0.1.33```- 3. Start the OpenRAG TUI:+ 3. Start the OpenRAG terminal session:```bashuv run openrag@@ -104,7 +105,7 @@ The commands to upgrade the package depend on how you installed OpenRAG.uv pip install --upgrade openrag==0.1.33```- 3. Start the OpenRAG TUI:+ 3. Start the OpenRAG terminal session:```bashuv run openrag@@ -113,19 +114,15 @@ The commands to upgrade the package depend on how you installed OpenRAG.</TabItem></Tabs>-6. In the OpenRAG TUI, click **Start Services**, and then wait while the services start.+6. In the OpenRAG terminal session, select the **Start services** option, and then wait while the services start.- When you start services, the TUI dictates the container version at runtime. It overrides the `OPENRAG_VERSION` variable in your `.env` file to match the currently installed OpenRAG Python package version.-- This ensures that your TUI and containers are always synchronized when using the TUI to manage services.-- :::tip- If you want to use a specific container version different from your TUI version, you must use manual `docker compose` or `make` commands instead of the TUI, or you can downgrade your Python package version.- :::+ When you start services, OpenRAG dictates the container version at runtime. It automatically sets the `OPENRAG_VERSION` variable in your `.env` file to match the currently installed OpenRAG Python package version.+ This ensures that your terminal and containers are always synchronized when using an OpenRAG terminal session to manage services.+ If you want to use a specific container version that is different from your terminal version, you must use the self-managed deployment commands.If you get an error that `langflow container already exists` error during upgrade, see [Langflow container already exists during upgrade](/support/troubleshoot#langflow-container-already-exists-during-upgrade).-7. After the containers start, click **Close**, and then click **Launch OpenRAG**.+7. After the containers start, select the **Open OpenRAG in browser** option.## Upgrade self-managed deployments@@ -144,10 +141,9 @@ The commands to upgrade the package depend on how you installed OpenRAG.```By default, OpenRAG's `docker-compose` files pull the latest container images.- However, you can pin the `OPENRAG_VERSION` in your `.env` file to a specific version tag.-- If you run OpenRAG using `make` commands or manual `docker compose` commands, the `OPENRAG_VERSION` variable is used exactly as defined in the `.env` file.- This allows you to pin the deployment to a specific version when managing the services manually.+ To use a specific earlier version, you set `OPENRAG_VERSION` in your `.env` file to the desired image tag, and then run OpenRAG with `docker compose`, `podman compose`, or [`make`](/support/contribute) commands.+ Overriding the `OPENRAG_VERSION` is only possible with self-managed deployments.+ This allows you to pin your OpenRAG containers to a specific version rather than deploying the latest version.3. After the containers start, access the OpenRAG application at `http://localhost:3000`.diff --git a/docs/docs/reference/configuration.mdx b/docs/docs/reference/configuration.mdxindex 348901607..844b8ffae 100644--- a/docs/docs/reference/configuration.mdx+++ b/docs/docs/reference/configuration.mdx@@ -8,7 +8,7 @@ import PartialDockerComposeUp from '@site/docs/_partial-docker-compose-up.mdx';OpenRAG's `.env` file is the primary configuration file for OpenRAG.Environment variables in `.env` always take precedence over other sources.-For deployments managed with the Terminal User Interface (TUI), this file is located at `~/.openrag/tui`, and it can be created automatically during [installation](/install-options).+For deployments managed with an OpenRAG terminal session, this file is located at `~/.openrag/tui`, and it can be created automatically during [installation](/install-options).For [self-managed deployments](/docker), this file can be located at the root of your OpenRAG project directory or referenced from another location.@@ -29,13 +29,13 @@ The only exceptions are flow-level Langflow settings, such as the language model## Edit the `.env` file and apply configuration changes {#set-environment-variables}During [installation](/install-options), you prepare an initial `.env` file.-For TUI-managed deployments, this file is created automatically.+For terminal-managed deployments, this file is created automatically.For self-managed deployments, you create this file manually.After installation, you can edit the `.env` file to change your OpenRAG configuration.:::tip-For TUI-managed deployments, many environment variables can be set in the TUI's When you save the changes and restart the OpenRAG services, the `.env` is updated automatically.+For terminal-managed deployments, many environment variables can be set through the **Reconfigure** option in the terminal session. The terminal session updates the `.env` file automatically.:::Most OpenRAG environment variables are mutable, and you can apply changes to these settings by [stopping and restarting the OpenRAG services](/manage-services) after editing the `.env` file.@@ -98,7 +98,7 @@ For better security, it is recommended to set `LANGFLOW_SUPERUSER_PASSWORD` so t| `LANGFLOW_ENABLE_SUPERUSER_CLI` | Determined by `LANGFLOW_SUPERUSER_PASSWORD` | Whether to enable the [Langflow CLI `langflow superuser` command](https://docs.langflow.org/api-keys-and-authentication#langflow-enable-superuser-cli). If `LANGFLOW_SUPERUSER_PASSWORD` isn't set, then `LANGFLOW_ENABLE_SUPERUSER_CLI` is `True` and superuser accounts can be created with the Langflow CLI. If `LANGFLOW_SUPERUSER_PASSWORD` is set, then `LANGFLOW_ENABLE_SUPERUSER_CLI` is `False` and the `langflow superuser` command is disabled. || `LANGFLOW_NEW_USER_IS_ACTIVE` | Determined by `LANGFLOW_SUPERUSER_PASSWORD` | Whether new [Langflow user accounts are active by default](https://docs.langflow.org/api-keys-and-authentication#langflow-new-user-is-active). If `LANGFLOW_SUPERUSER_PASSWORD` isn't set, then `LANGFLOW_NEW_USER_IS_ACTIVE` is `True` and new user accounts are active by default. If `LANGFLOW_SUPERUSER_PASSWORD` is set, then `LANGFLOW_NEW_USER_IS_ACTIVE` is `False` and new user accounts are inactive by default. || `LANGFLOW_PORT` | `7860` | Host port for the Langflow service. Change this if port 7860 is already in use on your system. If you change this, you must also set `LANGFLOW_PUBLIC_URL` to the new port. |-| `LANGFLOW_PUBLIC_URL` | `http://localhost:7860` | Public URL for the Langflow instance. Forms the base URL for Langflow API calls and other interfaces with your OpenRAG Langflow instance. Can also be set in the TUI's **Advanced Setup**. |+| `LANGFLOW_PUBLIC_URL` | `http://localhost:7860` | Public URL for the Langflow instance. Forms the base URL for Langflow API calls and other interfaces with your OpenRAG Langflow instance. Can also be set in the terminal's **Reconfigure** option at the **Cloud connector and advanced settings** prompt. || `LANGFLOW_SECRET_KEY` | Automatically generated | Secret encryption key for Langflow internal operations. It is recommended to [generate your own Langflow secret key](https://docs.langflow.org/api-keys-and-authentication#langflow-secret-key) for this variable. If this variable isn't set, then Langflow generates a secret key automatically. || `LANGFLOW_SUPERUSER` | `admin` | Username for the Langflow administrator user. || `LANGFLOW_SUPERUSER_PASSWORD` | Not set | Langflow administrator password. If this variable isn't set, then the Langflow server starts _without_ authentication enabled. It is recommended to set `LANGFLOW_SUPERUSER_PASSWORD` so the [Langflow server starts with authentication enabled](https://docs.langflow.org/api-keys-and-authentication#start-a-langflow-server-with-authentication-enabled). |@@ -116,6 +116,7 @@ For better security, it is recommended to set `LANGFLOW_SUPERUSER_PASSWORD` so t## OAuth and cloud storage connector settings {#oauth-and-cloud-storage-connector-settings}Use these variables to enable OAuth mode and configure cloud storage connectors.+You can also set these options through the terminal's **Reconfigure** option at the **Cloud connector and advanced settings** prompt.:::warningAdditional configuration is required for these features.@@ -127,7 +128,7 @@ For more information, see [Configure connectors](/knowledge-connectors).| `AWS_ACCESS_KEY_ID`<br/>`AWS_SECRET_ACCESS_KEY` | Not set | Authorize OpenRAG to ingest documents from AWS S3 with an [AWS OAuth app](https://docs.aws.amazon.com/singlesignon/latest/userguide/manage-your-applications.html) integration. || `GOOGLE_OAUTH_CLIENT_ID`<br/>`GOOGLE_OAUTH_CLIENT_SECRET` | Not set | Enable OAuth mode _and_ the Google Drive cloud storage connector with the [Google OAuth client](https://developers.google.com/identity/protocols/oauth2) integration. You can generate these values in the [Google Cloud Console](https://console.cloud.google.com/apis/credentials). || `MICROSOFT_GRAPH_OAUTH_CLIENT_ID`<br/>`MICROSOFT_GRAPH_OAUTH_CLIENT_SECRET` | Not set | Enable the [Microsoft Graph OAuth client](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/graph-oauth) integration by providing [Azure application registration credentials for SharePoint and OneDrive](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/app-registration?view=odsp-graph-online). |-| `WEBHOOK_BASE_URL` | Not set | Optional base URL for OAuth connector webhook endpoints. If not set, a default base URL is used. This variable is required to enable automatic cloud storage ingestion. Can also be set in the TUI's **Advanced Setup**. |+| `WEBHOOK_BASE_URL` | Not set | Optional base URL for OAuth connector webhook endpoints. If not set, a default base URL is used. This variable is required to enable automatic cloud storage ingestion. |## OpenSearch settings@@ -136,7 +137,7 @@ Configure OpenSearch database authentication.| Variable | Default | Description ||----------|---------|-------------|| `OPENSEARCH_DATA_PATH` | `./opensearch-data` | The path where OpenRAG creates your OpenSearch index data. This persists through updates. |-| `OPENSEARCH_PASSWORD` | Not set | Required. OpenSearch administrator password. Must adhere to the [OpenSearch password complexity requirements](https://docs.opensearch.org/latest/security/configuration/demo-configuration/#setting-up-a-custom-admin-password). You must set this directly in the `.env` or in the TUI's [**Basic/Advanced Setup**](/install-uvx#setup). |+| `OPENSEARCH_PASSWORD` | Not set | Required. OpenSearch administrator password. Must adhere to the [OpenSearch password complexity requirements](https://docs.opensearch.org/latest/security/configuration/demo-configuration/#setting-up-a-custom-admin-password). You must set this directly in the `.env` or in the terminal's [**Configure/Reconfigure**](/install-uvx#setup) option. || `OPENSEARCH_INDEX_NAME` | `documents` | The name of the [OpenSearch index](/knowledge#index). || `OPENSEARCH_HOST` | `localhost` | OpenSearch service host. || `OPENSEARCH_PORT` | `9200` | OpenSearch service port. |diff --git a/docs/docs/support/troubleshoot.mdx b/docs/docs/support/troubleshoot.mdxindex 6d773e8bc..9695bff80 100644--- a/docs/docs/support/troubleshoot.mdx+++ b/docs/docs/support/troubleshoot.mdx@@ -14,14 +14,12 @@ This page provides troubleshooting advice for issues you might encounter when usIf you are installing OpenRAG on macOS, and the installation fails with `unable to get local issuer certificate`, run the following command, and then retry the installation:```bash-open "/Applications/Python VERSION/Install Certificates.command"+open "/Applications/Python 3.13/Install Certificates.command"```-Replace `VERSION` with your installed Python version, such as `3.12`.-## No container runtime found-When you start the TUI, a `No container runtime found` error indicates that OpenRAG cannot find a running Docker or Podman machine.+When you start OpenRAG, a `No container runtime found` error indicates that OpenRAG cannot find a running Docker or Podman machine to run the OpenRAG containers.Make sure Docker or Podman is installed, available in the PATH, and a VM is running.@@ -45,7 +43,7 @@ If you encounter container memory errors, try the following:* Use a CPU-only deployment to reduce memory usage.- For TUI-managed deployments, you can enable **CPU mode** on the TUI's **Status** page.+ For terminal-managed deployments, you can enable **CPU mode** through the terminal's **Show Status** option.For self-managed deployments, CPU-only deployments use the `docker-compose.yml` file that doesn't have GPU overrides.@@ -55,13 +53,13 @@ Check that the value of the `OPENSEARCH_PASSWORD` [environment variable](/refereIf you need to change the password, you must [reset the OpenRAG services](/manage-services).-## OpenRAG fails to start from the TUI with operation not supported+## OpenRAG fails to start from the terminal with operation not supported-This error occurs when starting OpenRAG with the TUI in [WSL (Windows Subsystem for Linux)](https://learn.microsoft.com/en-us/windows/wsl/install).+This error occurs when starting OpenRAG with the terminal's **Start services** option while in the [WSL (Windows Subsystem for Linux)](https://learn.microsoft.com/en-us/windows/wsl/install).The error occurs because OpenRAG is running within a WSL environment, so `webbrowser.open()` can't launch a browser automatically.-To access the OpenRAG application, open a web browser and enter `http://localhost:3000` in the address bar.+To access the OpenRAG application, open a web browser, and then enter `http://localhost:3000` in the address bar.## Application onboarding gets stuck or fails@@ -191,7 +189,7 @@ For example, on macOS, this is typically a user cache directory, such as `~/.cacThis cache can become stale, producing errors like missing dependencies.-1. If the TUI is open, press <kbd>q</kbd> to exit the TUI.+1. If an active OpenRAG terminal is running, select the **Exit** option to end the session.2. Clear the `uv` cache:@@ -205,15 +203,17 @@ This cache can become stale, producing errors like missing dependencies.uv cache clean openrag```-3. Invoke OpenRAG to restart the TUI:+3. Invoke OpenRAG to restart the terminal session and regenerate the cache:```bashuvx openrag```-4. Click **Launch OpenRAG**, and then retry document ingestion.+4. Select the **Start services** option to restart the OpenRAG containers.++5. Select the **Open OpenRAG in a browser** option, and then retry document ingestion.-If you install OpenRAG with `uv`, dependencies are synced directly from your `pyproject.toml` file.+In contrast to `uvx`, if you install OpenRAG with `uv`, dependencies are synced directly from your `pyproject.toml` file.This should automatically install `easyocr` because `easyocr` is included as a dependency in OpenRAG's `pyproject.toml`.If you don't need OCR, you can disable OCR-based processing in your [ingestion settings](/ingestion-configure) to avoid requiring `easyocr`.@@ -392,5 +392,5 @@ The following steps explain how to troubleshoot these issues with Fedora 43, Poddocker.io/ollama/ollama:latest```-12. Start the TUI, and then start OpenRAG with GPU mode enabled.+12. In a terminal, run OpenRAG, and then start the OpenRAG services with GPU mode enabled.Or, for self-managed deployments, deploy OpenRAG with the `docker-compose-gpu.yml` file.\ No newline at end of file