Find answers from the community

Updated 7 months ago

Hey @Logan M, is there another way to

Hey @Logan M, is there another way to access the outputs of internal pipeline modules?
L
G
9 comments
Oh yea, I just merged this the other day
thank you sir 🫑
But ComponentIntermediates still doesn't have getters for the values of an output stored in it... For example, a reranker will return various outputs and one of them is nodes. Is there a way I can retrieve the nodes and their metadata without having to use regex on the output of intermediates["reranker"]?
From the Class definition there doesn't seem to be a way
Attachment
image.png
I think the info is all there?

For example
print(intermediates['reranker'].outputs will be a dict of the output keys of the reranker (I think there's only one actually)
every pipeline component has input keys and output keys, and thats what these dictionaries are mapping
You are right, I am just a bit rusty at python πŸ˜… . I kept going -> intermediates["reranker"]["outputs"]
there you go πŸ’ͺ
Add a reply
Sign up and join the conversation on Discord