Skip to content

Commit

Permalink
docs: add knowledge agent tutorial (#686)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Nov 26, 2024
1 parent 9300118 commit 0ad98cd
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/03-guides/03-github-assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This is a short tutorial demonstrating how to create an Otto8 agent that interacts with GitHub.

:::note
As you configure the agent, changes will be saved and applied automatically.
:::

## 1. Setting up the agent

Start by going to the Agents page in the admin UI and clicking **+ New Agent**.
Expand Down
43 changes: 43 additions & 0 deletions docs/docs/03-guides/04-knowledge-assistant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Tutorial: Create a Knowledge Agent

Otto8 makes it easy to create an agent to answer questions about a set of documents, using its built-in RAG feature.
This tutorial will demonstrate how to do this.

:::note
As you configure the agent, changes will be saved and applied automatically.
:::

## 1. Setting up the agent

Start by going to the Agents page in the admin UI and clicking **+ New Agent**.
Set the agent name and description to whatever you would like

Next, write some instructions for the agent.
This is a prompt that explains what you would like it to do for you.
Tell it about the documents that you will give to it, and what it should do with them.
Here is an example:

![Agent configuration](../../static/img/guides/knowledge-agent/agent-config.png)

## 2. Adding documents

Scroll down to the **Knowledge** section.
Fill in the **Knowledge Description** box with information about the documents that you will provide.
Then, click on the **+ Add Knowledge** button.
You can then upload files directly from your computer, sync with Notion or OneDrive, or scrape a website.
The example below uses some HR policies from Acorn Labs.

![Knowledge configuration](../../static/img/guides/knowledge-agent/knowledge-config.png)

## 3. Testing the agent

You can now begin chatting with the agent in the chat interface to the right.
Start by asking it a simple question that can be answered by at least one of the documents you provided.

![Example chat](../../static/img/guides/knowledge-agent/chat-example.png)

## 4. Publishing the agent (optional)

If you're happy with the agent and want other users on your Otto8 instance to be able to use it,
you can click the **Publish** button on the agent configuration page.
This will make it available in the user UI for all users to chat with.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0ad98cd

Please sign in to comment.