Start by ⭐️ starring lakeFS open source project.
This repository includes Jupyter Notebooks with LangChain and OpenAI libraries which you can run on your local machine.
Clone this repository
git clone https://github.com/treeverse/lakeFS-samples && cd lakeFS-samples/01_standalone_examples/llm-openai-langchain-integrationYou now have two options:
If you have already installed lakeFS or are utilizing lakeFS cloud, all you need to run is the Jupyter notebook with LangChain and OpenAI libraries (Docker image size will be around 10GB):
docker compose up If you want to provision a lakeFS server as well as MinIO for your object store, plus Jupyter with LangChain and OpenAI libraries then bring up the full stack:
docker compose --profile local-lakefs up- Jupyter http://localhost:8891/
If you've brought up the full stack you'll also have:
- LakeFS http://localhost:48000/ (
AKIAIOSFOLKFSSAMPLES/wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY) - MinIO http://localhost:49001/ (
minioadmin/minioadmin)
Open Jupyter UI http://localhost:8891 in your web browser, open one of the provided notebooks from JupyterLab UI and follow the instructions:
- AI Agent Demo: Build an AI Agent by using lakeFS, LangChain and OpenAI
- LLM OpenAI LangChain Demo: Reproducibility and Data version control for LangChain and LLM/OpenAI Models