You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: topic/machine-learning/llm-langchain/README.md
+37-5Lines changed: 37 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,18 @@
7
7
by language models. It provides a complete set of powerful and flexible
8
8
components for building context-aware, reasoning applications.
9
9
10
-
Please refer to the [LangChain documentation] for further information.
10
+
[LangGraph] is a low-level orchestration framework for building, managing,
11
+
and deploying long-running, stateful agents.
12
+
13
+
Please refer to the [LangChain documentation] and the [Building Ambient
14
+
Agents with LangGraph] academy material for further information.
11
15
12
16
Common end-to-end use cases are:
13
17
14
18
- Analyzing structured data
15
19
- Chatbots and friends
16
20
- Document question answering
21
+
- Text-to-SQL (talk to your data)
17
22
18
23
LangChain provides standard, extendable interfaces and external integrations
19
24
for the following modules, listed from least to most complex:
@@ -79,17 +84,21 @@ and [CrateDB].
79
84
augmented generation (RAG) pipeline. To implement RAG we use the Python client driver for
80
85
CrateDB and vector store support in LangChain.
81
86
82
-
-`cratedb_rag_customer_support_vertexai.ipynb`[](cratedb_rag_customer_support_vertexai.ipynb)[](https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/cratedb_rag_customer_support_vertexai.ipynb)
87
+
-`cratedb_rag_customer_support_vertexai.ipynb`[](cratedb_rag_customer_support_vertexai.ipynb)[](https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/cratedb_rag_customer_support_vertexai.ipynb)
83
88
84
89
This example illustrates the RAG implementation of a customer support scenario.
85
90
It is based on the previous notebook, and it illustrates how to use Vertex AI platform
86
91
on Google Cloud for RAG pipeline.
87
-
88
92
93
+
-`agent_with_mcp.py`
94
+
95
+
This example illustrates how to use LangGraph and the `langchain-mcp-adapters`
96
+
package to implement an LLM agent that is connecting to the CrateDB MCP server.
97
+
The demo program performs Text-to-SQL on timeseries data stored in a CrateDB table.
89
98
90
99
## Install
91
100
92
-
In order to properly set up a sandbox environment to explore the example notebooks
101
+
To properly set up a sandbox environment to explore the example notebooks
93
102
and programs, it is advised to create a Python virtualenv, and install the
94
103
dependencies into it. In this way, it is easy to wipe your virtualenv and start
95
104
from scratch anytime.
@@ -126,6 +135,26 @@ a cloud-based development environment is up and running. As soon as your project
126
135
easily move to a different cluster tier or scale horizontally.
127
136
128
137
138
+
### MCP
139
+
140
+
Spin up the [CrateDB MCP server], connecting it to CrateDB on localhost.
0 commit comments