|
2 | 2 |
|
3 | 3 | ## Deploy ClickStart |
4 | 4 |
|
5 | | -The easiest to get ClickStack up and running is to run it locally using docker. You can follow the [documentation](https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-stack-with-docker) here to get started. |
| 5 | +The easiest way to get ClickStack up and running is to run it locally using Docker. For more details, refer to the [documentation](https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-stack-with-docker). |
6 | 6 |
|
7 | | -Once ClickStack is up and running, get the [Ingestion API Key](https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started/sample-data#copy-ingestion-api-key) from the Team settings menu. |
| 7 | +``` |
| 8 | +docker run -p 8080:8080 -p 4317:4317 -p 4318:4318 docker.hyperdx.io/hyperdx/hyperdx-all-in-one |
| 9 | +``` |
| 10 | + |
| 11 | +Once ClickStack is running, get the [Ingestion API Key](https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started/sample-data#copy-ingestion-api-key) from the Team settings menu. |
8 | 12 |
|
9 | 13 | ## Configure librechat |
10 | 14 |
|
11 | | -Librechat requires an access to LLM to work. This demo has been tested only with Anthropic models, but other LLM provider should provide similar experience. |
| 15 | +LibreChat requires access to an LLM to function. This demo has been tested only with Anthropic models but other LLM providers should work similarly. |
12 | 16 |
|
13 | | -Rename the file env.example to .env and edit to put your LLM Api key. See librechat [documentation](https://www.librechat.ai/docs/configuration/dotenv#anthropic) for more information. |
| 17 | +Rename the file `.env.example` to `.env` and provide your LLM API key. |
14 | 18 |
|
15 | | -On top the `.env` file, copy the Ingestion API Key from ClickStack under the value `HYPERDX_API_KEY`. |
| 19 | +By example for Anthropic, scroll down to find the key `ANTHROPIC_API_KEY` and provide your API Key. |
16 | 20 |
|
17 | | -## Configure ClickHouse MCP Server |
| 21 | +See the LibreChat [documentation](https://www.librechat.ai/docs/configuration/dotenv#anthropic) for more information. |
18 | 22 |
|
19 | | -[ClickHouse MCP Server](https://github.com/ClickHouse/mcp-clickhouse) allows LLM to query ClickHouse. |
| 23 | +In addition to the LLM key, copy the Ingestion API Key from ClickStack and assign it to the variable `CLICKSTACK_API_KEY` in the .env file. |
20 | 24 |
|
21 | | -You need to configure ClickHouse MCP Server to connect to your ClickHouse deployment. |
| 25 | +## Configure ClickHouse MCP Server |
22 | 26 |
|
23 | | -Edit the following environment variables in the file `.env`: |
| 27 | +[ClickHouse MCP Server](https://github.com/ClickHouse/mcp-clickhouse) allows LLMs to query ClickHouse. |
24 | 28 |
|
25 | | -- `CLICKHOUSE_HOST`: ClickHouse deployment URL |
26 | | -- `CLICKHOUSE_USER`: Clickhouse username |
27 | | -- `CLICKHOUSE_PASSWORD`: Clickhouse password |
| 29 | +You need to configure ClickHouse MCP Server to connect to your ClickHouse deployment. |
28 | 30 |
|
29 | | -By default, the environement is configured to connect to the public [ClickHouse SQL Playground](https://sql.clickhouse.com/). |
| 31 | +By default, the MCP server is configured to connect to the public [ClickHouse SQL Playground](https://sql.clickhouse.com/). |
| 32 | + |
| 33 | +To connect to your own ClickHouse deployment, edit the following environment variables in the `.env` file: |
| 34 | + - `CLICKHOUSE_HOST`: ClickHouse deployment URL |
| 35 | + - `CLICKHOUSE_USER`: ClickHouse username |
| 36 | + - `CLICKHOUSE_PASSWORD`: ClickHouse password |
30 | 37 |
|
31 | 38 | ## Start librechat locally. |
32 | 39 |
|
33 | | -Run `docker compose up` to start librechat. |
| 40 | +Run `docker compose up` to start LibreChat. |
| 41 | + |
| 42 | +You can access it at `http://localhost:3080` and sign up to get started. |
34 | 43 |
|
35 | | -You can access it at `http://localhost:3080`. |
| 44 | +On the main page, you need to select the configured LLM and the ClickHouse MCP Server before typing your question. |
36 | 45 |
|
| 46 | + |
37 | 47 |
|
| 48 | +Here are examples of prompts to get you started if the MCP server is connected to the default SQL Playground. |
| 49 | +- What are the datasets available? |
| 50 | +- How does the USD relate to GBP? |
| 51 | +- Who is the most frequent contributor to Clickhouse git repo using the available git stat data? |
38 | 52 |
|
39 | 53 |
|
40 | 54 |
|
0 commit comments