haystack
haystack copied to clipboard
code snippet for `LostInTheMiddleRanker` produces unexpected template
Describe the bug
Documentation is incorrect for LostInTheMiddlerRanker example.
Error message No error message.
Expected behavior
I expect the output of PromptBuilder to include a query, but the query template variable appears to be empty.
Additional context
To Reproduce
Run the example and debug the run method for the PromptBuilder component.
System:
- OS: Mac
- GPU/CPU: CPU
- Haystack version (commit or version number): 2.3.1
- DocumentStore: n/a
- Reader: n/a
- Retriever: n/a
Thanks @axiomofjoy - @dfokina - I've made an edit suggestion here: https://docs.haystack.deepset.ai/suggested-edits/66bfbf60793ca1004b2335a8
That should fix this.