Skip to content

Conversation

natewiebe13
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
License MIT

Allow setting filters on queries

@carsonbot carsonbot added Feature New feature Store Issues & PRs about the AI Store component Status: Needs Review labels Sep 5, 2025
@natewiebe13
Copy link
Contributor Author

I see the code quality error is due to the new option. Qdrant's filtering is pretty complex, not sure exactly the best way to express the option and how useful it would be to try to match it exactly (especially if it changes)


/**
* @param array{
* filter?: array<string, array>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about:

filter?: array<string, mixed>,

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. Tests are passing now too

@OskarStark
Copy link
Contributor

Can you add tests for this new filter?

@natewiebe13 natewiebe13 force-pushed the qdrant-filters branch 2 times, most recently from 7547c7f to 275812d Compare September 5, 2025 21:27
@natewiebe13
Copy link
Contributor Author

Can you add tests for this new filter?

Added

@chr-hertel
Copy link
Member

Thank you @natewiebe13.

@chr-hertel chr-hertel merged commit 9e5fa5d into symfony:main Sep 5, 2025
12 checks passed
@natewiebe13 natewiebe13 deleted the qdrant-filters branch September 8, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Status: Reviewed Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants