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 1is configured to use OpenAI's gpt-3.5-turbo model.Prompt Template 2is 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 APInodes according to your specific needs.Note: This is a simplified example of a prompt architecture technique I call Mixture of Model Outputs.
Instructions
AI APInodes as needed.Topicsnode'smsg.topicvalues to whatever you like--Prompt Template 2is configured to present the final response using your specifiedtopic.language.LangChain JS Equivalent
Beta Was this translation helpful? Give feedback.
All reactions