ollama/examples/langchain-typescript-simple
Matt Williams 042100f797 final rename
Signed-off-by: Matt Williams <m@technovangelist.com>
2023-10-12 11:23:41 -07:00
..
main.ts simple gen to simple 2023-10-11 21:29:07 -07:00
package-lock.json simple gen to simple 2023-10-11 21:29:07 -07:00
package.json simple gen to simple 2023-10-11 21:29:07 -07:00
README.md final rename 2023-10-12 11:23:41 -07:00

LangChain

This example is a basic "hello world" of using LangChain with Ollama using Node.js and Typescript.

Setup

npm install

Run

ts-node main.ts

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?