Skip to content

Support pre-parsed Filter.Expression in getFilterExpression #3068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

solnone
Copy link
Contributor

@solnone solnone commented May 9, 2025

QuestionAnswerAdvisor.doGetFilterExpression
VectorStoreDocumentRetriever.computeRequestFilterExpression

  • Add type check to return Filter.Expression directly if already parsed.
  • Prevent unnecessary parsing when expression is already in correct form.

Thank you for taking time to contribute this pull request!
You might have already read the [contributor guide][1], but as a reminder, please make sure to:

  • Sign the contributor license agreement
  • Rebase your changes on the latest main branch and squash your commits
  • Add/Update unit tests as needed
  • Run a build and make sure all tests pass prior to submission

QuestionAnswerAdvisor.doGetFilterExpression
VectorStoreDocumentRetriever.computeRequestFilterExpression

- Add type check to return Filter.Expression directly if already parsed.
- Prevent unnecessary parsing when expression is already in correct form.

Signed-off-by: Solomon Hsu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant