haystack icon indicating copy to clipboard operation
haystack copied to clipboard

code snippet for `LostInTheMiddleRanker` produces unexpected template

Open axiomofjoy opened this issue 1 year ago • 1 comments

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 Screenshot 2024-08-16 at 1 56 03 PM

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

axiomofjoy avatar Aug 16 '24 20:08 axiomofjoy

Thanks @axiomofjoy - @dfokina - I've made an edit suggestion here: https://docs.haystack.deepset.ai/suggested-edits/66bfbf60793ca1004b2335a8

That should fix this.

TuanaCelik avatar Aug 16 '24 21:08 TuanaCelik