PromptTemplate + LLM Example (LangChain Port) #15
allanbunch
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PromptTemplate + LLM
Download: Example Node-RED Flow JSON
This example is a port of LangChain's Prompt Template chain.
For this example, the default API configuration is Ollama backed by Stability AI's amazing Stable LM 2 Zephyr 1.6B small language model (SLM). You'll want to configure the
AI API
node for your specific needs.Instructions
AI API
node as needed.Topic
node'smsg.topic
to whatever you like--thePrompt Template
is configured to tell a joke.LangChain JS Equivalent
Beta Was this translation helpful? Give feedback.
All reactions