haystack icon indicating copy to clipboard operation
haystack copied to clipboard

DocumentJoiner receives unfiltered documents when using LLM-generated filters

Open bglearning opened this issue 1 year ago • 0 comments

Note: This issue seems to be a pipeline.run bug and is fixed by the subgraphs branch.

In a pipeline with dynamic llm-generated filters (based on query, similar to this blog-post) i.e. basically query -> prompt-builder -> llm -> filter-parser -> retriever -> document_joiner the retriever generates filtered documents but the document_joiner ignores the generated filter.

Example Colab.

Screenshot 2024-09-23 at 19 09 20 Screenshot 2024-09-23 at 19 09 31

For Fix

It doesn't occur in the subgraphs branch. (Colab) Screenshot 2024-09-23 at 19 09 43

bglearning avatar Sep 23 '24 17:09 bglearning