About Pipeline
arg naming and chaining LLMs
#212
Replies: 3 comments 1 reply
-
Hi @alvarobartt, I agree! I think we should allow chaining LLMs in more complex ways. One simple solution could be to provide a list of LLMs that gets executed sequentially (instead of just I think the best solution is to be able to provide a DAG of LLMs, that would be flexible enough. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, I agree too! Chaining LLMs is very important. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
As of now the
Pipeline
expects two argsgenerator
andlabeller
, but essentially those are just chained LLMs with different tasks, so the naminggenerator
andlabeller
may be a bit confusing, as both LLMs may be generating something i.e. inImproving Text Embeddings with Large Language Models
they generate first a set of tasks and the use those tasks combined with sampling other args to generate triplets, so at the end both LLMs are "generators" while the naminglabeller
for the second one can be confusing.Additionally, we won't be able to chain more than 2 LLMs, and that could be limiting under certain scenarios, so we should carefully think on how we can provide those args so that the LLMs provided are executed sequentially, but without having to think on whether the LLM is the
generator
or thelabeller
. Also to reduce the code complexity so that the functions handling everything are common to both, makingPipeline
's code more readable.Beta Was this translation helpful? Give feedback.
All reactions