Skip to content

Conversation

kaijunyang
Copy link

Description:

This PR addresses an issue where the MultiQueryExpander fails to properly handle empty newlines in the model's response, causing it to return the original query even when valid expanded queries are present.

Related Issue:

Fixes #3345 (Bug description: MultiQueryExpander fails on empty newlines in response)

…g-projects#3345

- Filter out empty strings from query expansion results
- Optimize the logic for checking the number of query variants
@markpollack markpollack self-assigned this May 29, 2025
@markpollack markpollack added the RAG Issues related to Retrieval Augmented Generation label May 29, 2025
@markpollack
Copy link
Member

@ThomasVitale thoughts?

@markpollack markpollack added bug Something isn't working for: backport-to-1.0.x labels May 29, 2025
@markpollack markpollack added this to the 1.1.x milestone May 29, 2025
@ilayaperumalg
Copy link
Member

@ThomasVitale Just a reminder ping here. Could you share your thoughts on this fix? Thanks

@markpollack
Copy link
Member

can add a test in MultiQueryExpanderTests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working for: backport-to-1.0.x RAG Issues related to Retrieval Augmented Generation
Projects
None yet
3 participants