update langchain examples

This commit is contained in:
Jeffrey Morgan
2023-08-10 23:35:19 -07:00
parent 700c719422
commit efae43f932
5 changed files with 198 additions and 1 deletions

View File

@@ -13,3 +13,9 @@ pip install -r requirements.txt
```
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?
```

View File

@@ -1,4 +1,4 @@
from langchain.llms import Ollama
llm = Ollama(model="llama2")
res = llm.predict("hi!")
res = llm.predict("hello")
print (res)