Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
documentation.suse.com / Using Open WebUI

Using Open WebUI

Publication Date: 12 Nov 2024
WHAT?

Open WebUI is a Web-based application that allows you to interact with AI models.

WHY?

To understand what Open WebUI is and learn how to use it to effectively interact with AI models.

EFFORT

To understand the basics of Open WebUI takes less than 1 hour.

REQUIREMENTS

The descriptions and procedures in this article assume that the following points are already fulfilled:

  • You have successfully deployed the SUSE AI.

  • You can access the Open WebUI interface in your Web browser.

  • Your Open WebUI user account has been created and you have received the login credentials.

  • You have navigated your Web browser to the URL of your instance of Open WebUI and logged in with your credentials.

1 Introduction

This topic explains what Open WebUI is and describes basics of its user interface.

1.1 What is Open WebUI?

Open WebUI is a Web-based interface that allows you to interact with AI models, such as large language models (LLMs). It simplifies working with AI by providing a graphical user interface (GUI) instead of relying on command-line tools. The goal of Open WebUI is to make AI accessible to a broader audience, including those without technical expertise in AI development.

1.2 What are key benefits of using Open WebUI?

Interaction with AI models.

You can load a preferred AI model and interact with it using prompts in your natural language.

Custom data handling for RAG workflows.

Open WebUI allows you to upload documents or specify URLs of pages that the AI can parse and reference during interaction, often used in RAG workflows.

User-friendly interface.

By providing a graphical user interface, Open WebUI makes AI tools more accessible to non-technical users. It helps them utilize the power of advanced AI models without needing technical knowledge.

Data privacy

You can deploy Open WebUI locally or in a private environment. Such deployment is required for users concerned about privacy and data security.

1.3 Open WebUI user interface

Open WebUI user interface
Figure 1: Open WebUI user interface

The Open WebUI interface consists of three parts:

Top panel

Contains controls to manage tasks related to the current chat, such as:

  • Maximizing the chat window.

  • Selecting an AI model for the current chat.

  • Viewing and managing advanced settings for the current chat.

  • Changing settings related to the current user.

  • Viewing archived chats of the current user.

  • Accessing the Admin Panel.

Left side bar

Contains links to perform the following tasks:

  • Start a new chat.

  • Access the administrator's Workspace.

  • Search the content of the current chat.

  • Browse through the history of your chats.

Main chat window

Displays your recent queries and corresponding answers provided by the AI. By using the prompt field at the bottom, you can accomplish the following tasks related to the current chat:

  • Enter a query that you want the AI to answer.

  • Upload custom documents that you want the AI process and use as a source of information when answering.

  • Select a document, collection of documents or URL to extend the AI model's knowledge base.

  • Select a preconfigured AI model for the current chat.

  • Interrupt the chatbot from answering if you are already satisfied with the provided information.

1.4 Workspace

Important
Important

You need to have Open WebUI administrator privileges to access configuration screens or settings mentioned in this section.

The Workspace area of the Open WebUI is a place where you can manage important parts of the AI stack. To access it, click Workspace in the top of the left panel. Workspace consists of the following parts:

Models

Manage existing AI modules or add your custom AI module based on an existing one. Refer to https://docserv.suse.de:8085/suse-ai/1.0/html/openwebui-configuring/index.html#openwebui-managing-models for more details and related procedures.

Knowledge

Manage information sources—such as custom documents—that the users can use to enhance the current AI model's knowledge base. This helps to make the model's responses more contextual. Refer to for more details and related procedures.

Prompts

Define system prompts that guide the AI model to respond accurately in the style and format that you prefer. Refer to for more details and related procedures.

Tools

Tools include a collection of Python snippets that enhance interaction and expand functionality for working with AI models. Tools can, for example, integrate additional data sources to the model knowledge base, such as databases.

Functions

Functions include a collection of Python snippets that can perform mostly internal data processing to automate workflows or manage text processing.

1.5 Admin Panel

Important
Important

You need to have Open WebUI administrator privileges to access configuration screens or settings mentioned in this section.

The Admin Panel is a centralized control interface for administrators to manage system settings, user accounts and overall application functionality.

To access the Admin Panel, click your avatar button in the top right of the Open WebUI screen and select Admin Panel.

Admin Panel
Figure 2: Admin Panel

1.6 For more information

2 The chat window

This topic explains how to use the Open WebUI chat window to interact with an AI model.

  1. In the top left of the chat window, verify that an AI model is selected. If no model is selected, select the preferred one from the drop-down list.

    Tip
    Tip: Your default model

    To make the selected model your default one, click Set as default next to the AI model name.

    Tip
    Tip: Multiple AI modules

    You can select multiple AI modules by clicking the plus sign next to the name of the already selected module.

  2. Enter your prompt that you want AI to process in the chat input field.

    Tip
    Tip: Audio prompt

    If you prefer speaking rather than writing, click the small microphone icon in the right of the chat input field. Then say your prompt aloud and click the small check mark when finished.

  3. Confirm with Enter or click the up arrow to the right of the chat input field so that the AI model can process your prompt. Wait for the response.

    AI answering with 2 models
    Figure 3: AI answering with 2 models
  4. Depending on the number of selected AI models, one or multiple responses arrive. Below each response, there is a set of icons that help you perform the following tasks on the response.

    • Edit the response in a Markdown format in case you want to copy it for later use.

    • Copy the response to the clipboard.

    • Let Open WebUI read the response aloud.

    • Mark the response as good or bad. This way, the model learns to respond more precisely on the same or similar topic.

    • Regenerate the response if you are not happy with its current version. You can the cycle between individual versions of responses with the small left and right arrows.

3 The chat input field

For a new chat, the chat input field is located at the center of the Open WebUI chat window. During chatting, it slides to the window's bottom. Its main purpose is to accept a user prompt so that the AI can process it and respond (see Section 2, “The chat window”). Besides that, the chat input field provides extended functionality that can help you achieve the following tasks.

3.1 Selecting an AI model from the chat input field

This topic explains how to specify an AI model for the current chat from the input field.

You can specify which model you want the AI to use when responding to the prompts in your current chat. The selected model temporarily overrides your default model or the model you selected in the top right of the chat window.

  1. In the chat input field, type the @ character.

  2. From the drop-down list that appears, select one of the preconfigured AI models you want to talk to. You can only select one model at a time.

    Selecting an AI model
    Figure 4: Selecting an AI model

    Your selection is confirmed by the Talking to MODEL_NAME message right above the chat input field.

  3. Type your prompt and confirm with Enter or clicking the up arrow to the right of the chat input field.

    Prompt for a selected model
    Figure 5: Prompt for a selected model
  4. To deactivate the previously selected model from the current chat, click the cross icon to the right of the model name.

3.2 Adding preconfigured documents or external URLs from the chat input field

This topic explains how to add preconfigured collections of documents and external URLs from the chat input field.

Besides prompting preconfigured AI models, you can talk to documents or collection of documents uploaded by the administrator. You can also specify external URLs whose content will be processed. AI then responds to your prompts based on the specified information sources.

  1. In the chat input field, type the # character.

    1. From the drop-down list that appears, select one of the preconfigured documents or a collection of documents whose content you want AI to use as an information source. You can select multiple documents, one by one.

      Selecting documents and collections
      Figure 6: Selecting documents and collections
    2. Instead of selecting the preconfigured documents, you can start typing http: followed by the full valid URL to the page that you want AI to process. After you confirm it with Enter, AI starts processing it.

      Adding an URL source
      Figure 7: Adding an URL source
  2. Type your prompt and confirm with Enter or clicking the up arrow to the right of the chat input field.

    Prompt with selected documents and collections
    Figure 8: Prompt with selected documents and collections
  3. To deactivate the previously selected document from the current chat, hover its name and click the cross icon to the right of its name.

3.3 Adding custom data sources from the chat input field

This topic explains how to add external data sources from the input field.

Besides prompting preconfigured AI models, you can talk to custom data sources specified from the chat input field. These sources are processes by AI so that it can respond based on their content.

  1. Click the + sign left to the chat input field.

  2. Click Upload Files and specify the document from your disk to process. You can upload multiple documents at the same time.

  3. Type your prompt and confirm with Enter or clicking the up arrow to the right of the chat input field.

    Prompt with uploaded documents
    Figure 9: Prompt with uploaded documents
  4. To deactivate the previously selected document from the current chat, hover its name and click the cross icon to the right of its name.

3.4 Specifying a preconfigured system prompt from the chat input field

A system prompt sets, for example, the mood, context or style how you want the AI to interact with the user during a session. This topic explains how to select a preconfigured system prompt from the input field.

  1. In the chat input field, type the / character.

  2. From the drop-down list that appears, select the system prompt that you want to apply for the current chat.

    Preconfigured system prompt
    Figure 10: Preconfigured system prompt
  3. The content of the selected system prompt is pasted to the chat input field. Confirm it with Enter or clicking the up arrow to the right of the chat input field.