ollama/examples/langchain-python-simple/README.md

24 lines
351 B
Markdown
Raw Permalink Normal View History

2023-08-09 14:49:22 -04:00
# LangChain
This example is a basic "hello world" of using LangChain with Ollama.
## Running the Example
2023-08-09 14:49:22 -04:00
1. Ensure you have the `llama3.1` model installed:
2023-08-09 14:49:22 -04:00
```bash
ollama pull llama3.1
```
2023-08-09 14:49:22 -04:00
2. Install the Python Requirements.
2023-08-11 02:35:19 -04:00
```bash
pip install -r requirements.txt
```
2023-08-11 02:35:19 -04:00
3. Run the example:
```bash
python main.py
```