Our new LangChain Academy Course Deep Research with LangGraph is now live! Enroll for free.
OSS (v1-alpha)
LangChain and LangGraph
Motherduck is a managed DuckDB-in-the-cloud service.
duckdb
pip install duckdb
token="..." conn_str = f"duckdb:///md:{token}@my_db"
from langchain_openai import OpenAI from langchain_community.utilities import SQLDatabase from langchain_experimental.sql import SQLDatabaseChain db = SQLDatabase.from_uri(conn_str) db_chain = SQLDatabaseChain.from_llm(OpenAI(temperature=0), db, verbose=True)
import sqlalchemy from langchain.globals import set_llm_cache eng = sqlalchemy.create_engine(conn_str) set_llm_cache(SQLAlchemyCache(engine=eng))