-
Notifications
You must be signed in to change notification settings - Fork 127
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
chore: Pinecone - remove legacy filter support #1069
Conversation
@@ -201,6 +200,10 @@ def filter_documents(self, filters: Optional[Dict[str, Any]] = None) -> List[Doc | |||
:returns: A list of Documents that match the given filters. | |||
""" | |||
|
|||
if filters and "operator" not in filters and "conditions" not in filters: | |||
msg = "Legacy filters support has been removed. Please see documentation for new filter syntax." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest adding a link to the documentation in addition to the message to see the documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done @davidsbatista thanks for the suggestion, now applied across all relevant integrations
* Remove legacy filter support * Linting * Improve error message * Improve error message - lint * Change message to be more generic * Error msg fmt
convert
from fromhaystack-ai
)