Skip to content

Commit 45f0704

Browse files
committed
LangChain: Add missing provisioning notes using init.sql
1 parent 046d8f7 commit 45f0704

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

topic/machine-learning/llm-langchain/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ easily move to a different cluster tier or scale horizontally.
137137

138138
### MCP
139139

140+
# Provision database.
141+
```bash
142+
crash < init.sql
143+
```
144+
140145
Spin up the [CrateDB MCP server], connecting it to CrateDB on localhost.
141146
```bash
142147
export CRATEDB_CLUSTER_URL=http://crate:crate@localhost:4200/

topic/machine-learning/llm-langchain/agent_with_mcp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# Start database.
1010
docker run --rm -it --publish=4200:4200 crate/crate:nightly
1111
12+
# Provision database.
13+
crash < init.sql
14+
1215
# Start MCP server.
1316
export CRATEDB_MCP_TRANSPORT=streamable-http
1417
export CRATEDB_MCP_HOST=0.0.0.0

0 commit comments

Comments
 (0)