template = """ Understand the user query and list of products the user is interested in and return product names as list. You should always return a Python list. Do not return any explanation. Examples: Question: I am interested in camping boots, charcoal and disposable rain jacket. Answer: ["camping_boots","charcoal","disposable_rain_jacket"] Question: Need a laptop, wireless mouse, and noise-cancelling headphones for work. Answer: ["laptop","wireless_mouse","noise_cancelling_headphones"] Question: {{ question }} Answer: """ product_identifier = Pipeline() product_identifier.add_component("prompt_builder", PromptBuilder(template=template)) product_identifier.add_component("llm", generator()) product_identifier.connect("prompt_builder", "llm")