ollama/examples/with-langchain-python-simplegenerate
Matt Williams cdf5e106ae rename dirs
Signed-off-by: Matt Williams <m@technovangelist.com>
2023-10-11 06:10:24 -07:00
..
main.py rename dirs 2023-10-11 06:10:24 -07:00
README.md rename dirs 2023-10-11 06:10:24 -07:00
requirements.txt rename dirs 2023-10-11 06:10:24 -07:00

LangChain

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

Setup

pip install -r requirements.txt

Run

python main.py

Running this example will print the response for "hello":

Hello! It's nice to meet you. hopefully you are having a great day! Is there something I can help you with or would you like to chat?