Skip to content

Feature: Add Document Retrieval with Metadata Filtering #231

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 2 commits into
base: main
Choose a base branch
from

Conversation

cedrickrusche
Copy link

This pull request introduces the methods get and aget like in ChromaDB to retrieve data by metadata.

🔧 Changes

  • Asynchronous Document Retrieval: Implemented the aget method to asynchronously retrieve documents based on optional filters and parameters.
  • Synchronous Document Retrieval: Added the get method for synchronous document retrieval, leveraging the asynchronous aget method.
  • Metadata Filtering: Created the __query_collection_with_filter method to support filtering conditions in the SQL WHERE clause without similarity function
  • Test Cases: Added unit tests for both asynchronous and synchronous document retrieval methods to ensure functionality and reliability.

📈 Impact

These changes let us retrieve the current content to get insights about the data in the database e.g. to find outdated content.

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