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

Add directory document readers for vector search Object API #226

Merged
merged 6 commits into from
Feb 14, 2024

Conversation

NikolaosPapailiou
Copy link
Collaborator

@NikolaosPapailiou NikolaosPapailiou commented Feb 2, 2024

This is adding directory readers that can be used to read documents from a directory structure.
We introduce 2 readers:

  1. Text reader: Extracts text from different types of documents based on their mime type. This can be used for several file types (.pdf, .docx, .html, .jpg, .png, etc.). This is implemented by reusing the LangChain document read utilities.
  2. Image document reader: Read images from image files in a directory.

The readers also work for vfs directories.

We also introduce multiple notebook examples in apis/python/examples/object_api/

Copy link

This pull request has been linked to Shortcut Story #39895: Object-level API for vector search.

Copy link
Contributor

@jparismorgan jparismorgan left a comment

Choose a reason for hiding this comment

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

Looks good to me but you may want to wait for another review as well.

@NikolaosPapailiou NikolaosPapailiou merged commit d1cf7f6 into main Feb 14, 2024
4 of 5 checks passed
@NikolaosPapailiou NikolaosPapailiou deleted the npapa/sc-39895/object_api_documents branch February 14, 2024 13:01
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.

2 participants