Multiple Chains Example (LangChain Port) #16
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
Uh oh!
There was an error while loading. Please reload this page.
-
Multiple Chains
This example is a port of LangChain's Multiple chains cookbook entry.
Download: Multiple Chains Example Flow JSON
For this example,
Prompt Template 1
is configured to use OpenAI's gpt-3.5-turbo model.Prompt Template 2
is configured to use Ollama backed by Stability AI's amazing Stable LM 2 Zephyr 1.6B small language model (SLM). You'll want to configure these and their correspondingAI API
nodes according to your specific needs.Note: This is a simplified example of a prompt architecture technique I call Mixture of Model Outputs.
Instructions
AI API
nodes as needed.Topics
node'smsg.topic
values to whatever you like--Prompt Template 2
is configured to present the final response using your specifiedtopic.language
.LangChain JS Equivalent
Beta Was this translation helpful? Give feedback.
All reactions