Skip to content

Build a local knowledge base with AnythingLLM ​

AnythingLLM is an open-source, all-in-one AI application that lets you chat with documents using Retrieval-Augmented Generation (RAG). It supports multiple LLM providers and vector databases, all running locally on your Olares device.

Learning objectives ​

In this guide, you will learn how to:

  • Install AnythingLLM on Olares.
  • Configure the chat model and embedding provider in AnythingLLM.
  • Create a workspace and upload documents to build a knowledge base.
  • Query your knowledge base using natural language.

Prerequisites ​

Before you begin, you need:

  • An Olares device running Olares 1.12.7 or later, with sufficient disk space and memory.

  • Access to Router for local model connections.

  • Admin privileges to install apps from Market.

  • The following models:

    Model typeModelHow to get it
    ChatQwen3.8-27B (llama.cpp)Install from Market
    Embeddingall-MiniLM-L6-v2The built-in embedder from AnythingLLM
Optional: Use a different model

Install another chat model from Market, or create a model instance with Engine Base apps. Then select it as the default chat model on Router's Default models page. Clients configured with default-chat use the new default without changing their model settings.

To keep a client on one specific model, use the full model name from Router's How to call this model window instead.

Install AnythingLLM ​

  1. Open Market and search for "AnythingLLM".

    Install AnythingLLM

  2. Click Get, then Install, and wait for installation to complete.

Get model connection details ​

How model connections work

On Olares 1.12.7 and later, AI clients connect through Olares Router. Router provides the Base URL and routes default-chat to the model selected on its Default models page.

This guide uses Qwen3.8-27B (llama.cpp) as the default chat model. For connection formats and API key requirements, see Connect AI apps.

For Qwen3.8-27B (llama.cpp):

  1. Open Router from Launchpad. On Default models, set Qwen3.8-27B (llama.cpp) as the default chat model.

  2. Go to LLM, find Qwen3.8-27B (llama.cpp), and click View connection example on its row.

  3. In How to call this model, select Apps in Olares and copy the Base URL, including /v1.

  4. For the model name, use default-chat.

    Selecting a model in your app

    default-chat is a routing name and does not appear in model lists loaded from Router. If the app you are connecting to Router loads a model list, add default-chat manually. If the app only supports selecting a listed model, select the full model name shown in Router's How to call this model window.

  5. For the API key, leave the field empty. If the app you are connecting to Router requires a value, enter olares.

Configure AnythingLLM ​

Configure the chat model and embedding provider. These settings become the system defaults for all workspaces.

Set up the chat model ​

  1. Open AnythingLLM from Launchpad.

  2. On the home page, click the Open settings icon in the bottom-left.

  3. In the left sidebar, select AI Providers > LLM, and then select Generic OpenAI as the LLM provider.

  4. In Base URL, paste the Base URL from Router.

  5. In Selected Model, enter default-chat manually.

  6. Click Save changes. The "LLM preferences saved successfully" message is displayed.

Set up the embedding model ​

  1. In the left sidebar, select Embedder, and then select AnythingLLM Embedder as the embedding provider.

  2. In Model Preference, select all-MiniLM-L6-v2 as the embedding model.

    Configure embedding model

  3. Click Save changes. The "Embedding preferences saved successfully" message is displayed.

Create a workspace ​

  1. Click AnythingLLM in the upper-left corner to return to the home page.

  2. Click add_2 next to the search bar.

    Create workspace

  3. In the New Workspace window, name your workspace such as My test, and then click Save.

Upload documents ​

  1. Click upload next to the workspace name to open the document manager.

    Open document manager

  2. Upload your documents by uploading files or by submitting links. The uploaded documents and webpages are displayed in the My Documents panel.

    Upload documents

  3. In the My Documents panel, select the uploaded documents, and then click Move to Workspace to add them to the newly created workspace.

    Move to workspace

  4. Click Save and Embed to start embedding.

    This might take a few minutes depending on the number of documents. When the embedding finishes, the "Workspace updated successfully" message is displayed.

Query your knowledge base ​

Ask questions about your documents.

  1. Return to the workspace chat view.

  2. Send your question through the chat. For example:

    text
    Olares supports backup or not
  3. AnythingLLM retrieves relevant sections from your documents and generates an answer based on the content.

    Query result

Learn more ​