Skip to main content

Quickstart

Use this quickstart to install OpenRAG, and then try some of OpenRAG's core features.

Prerequisites

  • Install Python version 3.13 or later.

Install OpenRAG

For this quickstart, install OpenRAG with the automatic installer script and basic setup. The script installs OpenRAG dependencies, including Docker or Podman, and then it installs and runs OpenRAG with uvx.

  1. Create a directory for your OpenRAG installation, and then change to that directory:

    mkdir openrag-workspace
    cd openrag-workspace
  2. Download and run the OpenRAG install script:

    curl -O https://docs.openr.ag/files/run_openrag_with_prereqs.sh
    bash run_openrag_with_prereqs.sh
  3. Wait while the installer script prepares your environment and installs OpenRAG. 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) starts.

    OpenRAG TUI Interface

  4. In the TUI, click Basic Setup.

  5. For Langflow Admin Password, click Generate Password to create a Langflow administrator password and username.

  6. Use the default values for all other fields.

  7. Click Save Configuration.

    Your OpenRAG configuration and passwords are stored in an OpenRAG .env file file that is created automatically at ~/.openrag/tui. OpenRAG container definitions are stored in the docker-compose files in the same directory.

  8. Click Start OpenRAG 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:

    Services started successfully
    Command completed successfully
  9. Click Close, and then click Launch OpenRAG to access the OpenRAG application and start the application onboarding process.

  10. 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.

  11. Click through the overview slides for a brief introduction to OpenRAG, or click 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.

Load and chat with documents

Use the OpenRAG Chat to explore the documents in your OpenRAG database using natural language queries. Some documents are included by default to get you started, and you can load your own documents.

  1. In OpenRAG, click Chat.

  2. For this quickstart, ask the agent what documents are available. For example: What documents are available to you?

    The agent responds with a summary of OpenRAG's default documents.

  3. To verify the agent's response, click Knowledge to view the documents stored in the OpenRAG OpenSearch knowledge base. You can click a document to view the chunks of the document as they are stored in the knowledge base.

  4. Click Add Knowledge to add your own documents to your OpenRAG knowledge base.

    For this quickstart, use either the File or Folder upload options to load documents from your local machine. Folder uploads an entire directory. The default directory is ~/.openrag/documents.

    For other ingestion options, see Ingest knowledge.

  5. Return to the Chat window, and then ask a question related to the documents that you just uploaded.

    If the agent's response doesn't seem to reference your documents correctly, see Troubleshoot chat issues.

Change the language model and chat settings

In OpenRAG, you can change some chat and ingestion settings directly on the Settings page. For full customization capabilities, you can edit the underlying Langflow flows in the OpenRAG's embedded Langflow visual editor.

For this quickstart, try changing the Language Model or Agent Instructions. Editing the flow in Langflow is optional.

  1. In OpenRAG, click Settings, and then find the Agent section.

  2. If you only need to edit the language model or agent instructions, edit those fields directly on the Settings page. Language model changes are saved automatically. To apply new instructions, click Save Agent Instructions.

  3. To edit all flow settings and components with full customization capabilities, edit the flow in the Langflow visual editor:

    1. Click Edit in Langflow to launch the Langflow visual editor in a new browser tab.

    2. If prompted to acknowledge that you are entering Langflow, click Proceed.

    3. If Langflow requests login information, enter the LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD from your OpenRAG .env file.

    4. In the Langflow header, click Starter Project to go to the Langflow Projects page, and then unlock the flow.

    5. On the Projects page, click the OpenRAG OpenSearch Agent flow to open the visual editor with the flow unlocked.

      OpenRAG OpenSearch Agent flow

    6. Modify the flow as desired, and then press Command+S (Ctrl+S) to save your changes. Then, you can close the Langflow browser tab, or leave it open if you want to continue experimenting with the flow editor.

  4. After you modify any Agent flow settings, go to the OpenRAG Chat, and then click Start new conversation in the Conversations list. This ensures that the chat doesn't persist any context from the previous conversation with the original flow settings.

  1. Ask the same question you asked in Load and chat with documents to see how the response differs from the original settings.

  2. To undo your changes, go to Settings, and then click Restore flow to revert the flow to its original state when you first installed OpenRAG.

Next steps

  • Reinstall OpenRAG with your preferred settings: This quickstart used uvx and a minimal setup to demonstrate OpenRAG's core functionality. It is recommended that you reinstall OpenRAG with your preferred configuration and installation method.

  • Use the OpenRAG SDKs: To interact with OpenRAG programmatically, use the OpenRAG SDKs.

  • Learn more about OpenRAG: Explore OpenRAG and the OpenRAG documentation to learn more about its features and functionality.

  • Learn more about Langflow: For a deep dive on the Langflow API and visual editor, see the Langflow documentation.