haystack icon indicating copy to clipboard operation
haystack copied to clipboard

fix: PromptNode run raises on empty inputs

Open tstadel opened this issue 9 months ago • 0 comments

Related Issues

  • fixes raising the following error if running prompt_node.run(query="", documents=documents)
    Exception while running node 'PromptNode': Expected prompt parameters ['documents', 'query'] to be provided but got only 
    ['documents']. Make sure to provide all template parameters.
    Enable debug logging to see the data that was passed when the pipeline failed.
    

Proposed Changes:

  • include any variable into invocation_context that is not None

How did you test it?

  • added test

Notes for the reviewer

Checklist

tstadel avatar May 23 '24 10:05 tstadel