Skip to content

Commit 49f70b9

Browse files
authored
docs: Update setup docs (#884)
Update setup docs
1 parent f71a1f6 commit 49f70b9

File tree

5 files changed

+22
-32
lines changed

5 files changed

+22
-32
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Toolkit is a deployable all-in-one RAG application that enables users to quickly
2929
## Try Now:
3030
There are two main ways for quickly running Toolkit: local and cloud. See the specific instructions given below.
3131
### Local
32-
*You will need to have [Docker](https://www.docker.com/products/docker-desktop/) and [Docker-compose >= 2.22](https://docs.docker.com/compose/install/) installed. [Go here for a more detailed setup.](/docs/setup.md)*
32+
*You will need to have [Docker](https://www.docker.com/products/docker-desktop/), [Docker-compose >= 2.22](https://docs.docker.com/compose/install/), and [Poetry](https://python-poetry.org/docs/#installation) installed. [Go here for a more detailed setup.](/docs/setup.md)*
3333
Note: to include community tools when building locally, set the `INSTALL_COMMUNITY_DEPS` build arg in the `docker-compose.yml` to `true`.
3434

35-
Both options will make the frontend available at http://localhost:4000.
35+
Both options will serve the frontend at http://localhost:4000.
3636

3737
#### Using `make`
3838
Use the provided Makefile to simplify and automate your development workflow with Cohere Toolkit, including Docker Compose management, testing, linting, and environment setup.
@@ -42,8 +42,6 @@ cd cohere-toolkit
4242
make first-run
4343
```
4444

45-
46-
4745
#### Docker Compose only
4846
Use Docker Compose directly if you want to quickly spin up and manage your container environment without the additional automation provided by the Makefile.
4947
```bash

docs/custom_tool_guides/tool_auth_guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### 1. **Create an Authentication Class**
2-
You need to create a class specifically for your tool's authentication.
2+
You need to create a class specifically for your tool's authentication. For great examples, check out the implementations for GMail, GDrive or Slack.
33

44
### 2. **Inheritance**
55
Your authentication class should inherit from:
@@ -85,5 +85,5 @@ def retrieve_auth_token(self, request: Request, session: DBSessionDep, user_id:
8585
### 4. **Integrate the Auth Class**
8686
Once you've created your authentication class, integrate it into your tool’s configuration so that the frontend can use it for authenticating users when interacting with the tool.
8787

88-
To do so, go to your tool config definition and add:
88+
To do so, go to your tool's `get_tool_definition` method and add:
8989
`auth_implementation=<YourAuthClass>,`

docs/setup.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@
66
cd <repository-folder>
77
```
88

9-
2. **Set Up with Make**:
9+
2. **Install Poetry and Docker**:
10+
Install [Poetry >= 1.7.1](https://python-poetry.org/docs/#installation)
11+
Install [Docker](https://www.docker.com/products/docker-desktop/)
12+
Install [Docker Compose >= 2.22](https://docs.docker.com/compose/install/)
13+
14+
3. **Set Up with Make**:
1015
Run:
1116
```bash
1217
make first-run
1318
```
1419
This generates the necessary configuration files and applies database migrations.
1520

16-
3. **Manual Configuration**:
21+
4. **Manual Configuration**:
1722
If you prefer:
1823
- Create a `configuration.yaml` file based on `configuration.template.yaml`.
1924
- Replace the placeholders with your actual values.
@@ -25,10 +30,11 @@
2530

2631
### Environment Variables
2732

28-
Ensure to configure your environment variables appropriately. Important ones include:
29-
- `COHERE_API_KEY`: Your API key for Cohere.
30-
- `DATABASE_URL`: Connection string for PostgreSQL.
31-
- `REDIS_URL`: Connection string for Redis.
33+
Ensure your `configuration.yaml` and `secrets.yaml` file are properly generated and have valid values, especially for the following:
34+
35+
- `cohere_platform.api_key` (in the secrets file): Your API key for Cohere.
36+
- `database.url` (in the config file): Connection string for PostgreSQL.
37+
- `redis.url` (in the config file): Connection string for Redis.
3238

3339
### Local Database Setup
3440

@@ -72,6 +78,5 @@ Ensure to configure your environment variables appropriately. Important ones inc
7278

7379
### Additional Tips
7480

75-
- **Use Poetry**: It manages dependencies efficiently. Ensure to install the required version (`1.7.1` or higher).
7681
- **Linting and Formatting**: Use `make lint` and `make lint-fix` for maintaining code quality.
7782
- **VSCode Setup**: Install extensions for Ruff and set up your environment as per the provided recommendations.

docs/walkthrough/walkthrough.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1 align="center" >Toolkit Guide</h1>
66
</p>
77

8-
Cohere Toolkit is a collection of plug-in pre-built components enabling customers to quickly build and deploy **production** level RAG applications. Principles of the toolkit is that it is:
8+
Cohere Toolkit is a collection of plug-and-play pre-built components enabling customers to quickly build and deploy **production** level RAG applications. Toolkit was built with the following principles in mind:
99

1010
- Quick and simple to set up a light weight version
1111
- Quick and simple to configure for your needs
@@ -15,12 +15,7 @@ Cohere Toolkit is a collection of plug-in pre-built components enabling customer
1515

1616
<h2>Initial Set Up</h2>
1717

18-
When you first set up the toolkit by running one of the following commands:
19-
- `docker run -e COHERE_API_KEY='>>YOUR_API_KEY<<' -p 8000:8000 -p 4000:4000 ghcr.io/cohere-ai/cohere-toolkit:latest`
20-
- Or cloning:
21-
- `git clone https://github.com/cohere-ai/cohere-toolkit.git`
22-
- `cd cohere-toolkit`
23-
- `make first-run`
18+
Quickly setup Toolkit by following our [setup guide.](../setup.md)
2419

2520
The default configuration of the toolkit is:
2621

@@ -33,7 +28,6 @@ On top of this the toolkit offers many configurable components
3328
Below we will go through each of these components including the prebuilt options and how to plug in your own.
3429

3530

36-
3731
<p align="center">
3832
<img src="assets/interfaces.png" width="100px" height="100px" />
3933
<h1 align="center" >Interfaces</h1>
@@ -42,9 +36,9 @@ Below we will go through each of these components including the prebuilt options
4236
Interfaces are applications on top of the backend API this could be anything from a website, workflows, a bot etc.
4337

4438
Pre-built interfaces which your can customize to your needs include:
45-
- Chat UI (Coral)
46-
47-
- SlackBot
39+
- Assistants UI (Agentic, default)
40+
- Chat UI (Coral, non-agentic)
41+
- Slack Bot
4842

4943
To add your own:
5044

@@ -138,10 +132,3 @@ We have a [detailed guide for each cloud deployment here](../service_deployments
138132
</p>
139133

140134
The toolkit stores history of conversations to improve next turn generations. It stores these turns in a PostgreSQL database. It is possible to switch this out for a database that you prefer. There is also an option with no storage.
141-
142-
<p align="center">
143-
<img src="assets/analytics.png" width="100px" height="100px" />
144-
<h1 align="center" >Analytics</h1>
145-
</p>
146-
147-
Currently in development.

src/backend/config/configuration.template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ redis:
2121
url: redis://:redis@redis:6379
2222
tools:
2323
hybrid_web_search:
24-
# List of web search tool names, eg: google_web_search, tavily_web_search
24+
# List of web search tool names, from: google_web_search, tavily_web_search, brave_web_search
2525
enabled_web_searches:
2626
- tavily_web_search
2727
# List of domains to filter (exclusively) for web search

0 commit comments

Comments
 (0)