Customize your local AI assistant using Dify
Dify is an AI application development platform. It's one of the key open-source projects that Olares integrates to help you build and manage AI applications while maintaining full data ownership. Additionally, you can integrate your personal knowledge base documents into Dify for more personalized interactions.
Learning objectives
In this guide, you will learn how to:
- Connect Dify to a local chat model through Router.
- Create an assistant and add documents to its knowledge base.
Before you begin
- Install Qwen3.8-27B (llama.cpp) from Market.
Install Dify
INFO
Starting from Olares 1.11.6, if "Dify For Cluster" or "Dify" was previously installed, uninstall them before proceeding.
- Install "Dify Shared" from Olares Market.
- Launch Dify from your desktop. Please ensure the admin has already installed Dify Shared.
Create an AI assistant app
Open Dify, navigate to the Studio tab, and select Create from Blank to create an app for the AI assistant. Here, we created an agent named "Ashia".

Click Go to settings on the right to access the model provider configuration page. You can choose between remote models or locally hosted models.

Add a chat model through Router
Get model connection details
Open Router from Launchpad. On Default models, set Qwen3.8-27B (llama.cpp) as the default chat model and wait until
default-chatshows Callable.Copy the Router address from your browser. Keep only the protocol and domain, then append
/v1. Replace the domain in this example with your own:texthttps://router.laresprime.olares.com/v1
Configure the model in Dify
- In Dify, open Settings > Model Provider, then install and select the OpenAI-API-compatible provider plugin.
- Add a model with Model Name set to
default-chatand the model type set to chat or LLM. - Set Base URL to the URL copied from Router, including
/v1. Leave the API key empty if allowed, or enterolaresif required. - Save the configuration.
Configure Ashia
Navigate to Dify's Studio tab and enter Ashia.
From the model list on the right, select the
default-chatmodel you just configured.Click Publish. Now you can chat with Ashia in the Debug & Preview window.

Set up local knowledge base
- In Dify, navigate to the Knowledge tab.
- Locate your default knowledge base. It will be named after your Olares ID and monitors the
/Documentsfolder in Files.
- Enter
/Documentsand add documents to the knowledge base.
- In Ashia's orchestration page, click addAdd to add context support for Ashia.

- Click Publish. Now try asking a domain-specific question with the help of the knowledge base.
