deepset-ai / haystack

:mag: AI orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots.
https://haystack.deepset.ai
Apache License 2.0
16.64k stars 1.83k forks source link

code snippet for `LostInTheMiddleRanker` produces unexpected template #8246

Closed axiomofjoy closed 2 days ago

axiomofjoy commented 3 weeks ago

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:

TuanaCelik commented 3 weeks ago

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

That should fix this.