ollama/examples/langchain-python-simple
Simon Schampijer cfb1ddd6fc
examples: update langchain-python-simple (#3591)
- better formatting of input prompt
- use invoke instead of predict
2024-11-24 16:06:22 -08:00
..
main.py examples: update langchain-python-simple (#3591) 2024-11-24 16:06:22 -08:00
README.md update default model to llama3.2 (#6959) 2024-09-25 11:11:22 -07:00
requirements.txt simple gen to simple 2023-10-11 21:29:07 -07:00

LangChain

This example is a basic "hello world" of using LangChain with Ollama.

Running the Example

  1. Ensure you have the llama3.2 model installed:

    ollama pull llama3.2
    
  2. Install the Python Requirements.

    pip install -r requirements.txt
    
  3. Run the example:

    python main.py