This is a tutorial for the LangChain project.
This tutorial will guide you through the process of setting up a LangChain component and using it to create a simple LLM APP.
This tutorial will cover the following Langchain components:
- LLM & Chat
- Prompt
- Indexes
- Chains
- Memory
- Agents
- Python 3.9 or higher
- Ollama - local language model server
- Poetry - Python dependency management tool
- Clone the repository
- Install Ollama - see link
- Install Poetry - see link
- Setup virtual environment
python -m venv .venv
- Activate virtual environment
source .venv/bin/activate
- Install dependencies
poetry install
- pull llama-3 model - This will download the model from the Ollama server (can take a while depending on the model size)
ollama pull llama3
- Run Jupyter Notebook
jupyter notebook