Skip to content
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

Pinecone - filters #133

Merged
merged 5 commits into from
Dec 22, 2023
Merged

Pinecone - filters #133

merged 5 commits into from
Dec 22, 2023

Conversation

anakin87
Copy link
Member

No description provided.

@anakin87 anakin87 requested a review from masci December 22, 2023 13:36
@anakin87 anakin87 marked this pull request as ready for review December 22, 2023 13:44
@anakin87 anakin87 requested a review from a team as a code owner December 22, 2023 13:44
@anakin87 anakin87 requested review from ZanSara and removed request for a team and ZanSara December 22, 2023 13:44
@anakin87 anakin87 changed the title [WIP] Pinecone filters Pinecone - filters Dec 22, 2023
Base automatically changed from add_pinecone to main December 22, 2023 14:52
integrations/pinecone/src/pinecone_haystack/filters.py Outdated Show resolved Hide resolved
integrations/pinecone/src/pinecone_haystack/filters.py Outdated Show resolved Hide resolved
"not in": _not_in,
}

LOGICAL_OPERATORS = {"AND": "$and", "OR": "$or"}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would put module constants at the top

Copy link
Member Author

@anakin87 anakin87 Dec 22, 2023

Choose a reason for hiding this comment

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

The fact is that COMPARISON_OPERATORS depends on some functions, so they should live after the function definitions.
And I would prefer LOGICAL_OPERATORS to be close.

@anakin87 anakin87 requested a review from masci December 22, 2023 15:43
Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

All good!

@anakin87 anakin87 merged commit 30e0b7c into main Dec 22, 2023
5 checks passed
@anakin87 anakin87 deleted the pinecone-filters branch December 22, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants