Find answers from the community

Updated 6 months ago

Src key

HI, having trouble getting a unconventional input to work with query pipeline. I want to feed in 2 arguments into p.run(arg1, arg2). Inside the query pipeline, I use InputComponent to link to multiple modules, but sometimes I need to feed arg1 to a module, and arg2 to another module. I thought source_key would specify which is which. I don't any sample code that shows how to use source_key. if not source_key, what is the way to implement this?
L
b
2 comments
src_key and InputComponent is definitely the way. But make sure you use kwargs when running the pipeline

pipeline.run(arg1=val1, arg2=val2)
Add a reply
Sign up and join the conversation on Discord