ollama/examples/langchain-python-simple
Dr Nic Williams e8aaea030e
Update 'llama2' -> 'llama3' in most places (#4116)
* Update 'llama2' -> 'llama3' in most places

---------

Co-authored-by: Patrick Devine <patrick@infrahq.com>
2024-05-03 15:25:04 -04:00
..
main.py Update 'llama2' -> 'llama3' in most places (#4116) 2024-05-03 15:25:04 -04:00
README.md Update 'llama2' -> 'llama3' in most places (#4116) 2024-05-03 15:25:04 -04: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 model installed:

    ollama pull llama3
    
  2. Install the Python Requirements.

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

    python main.py