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

Ability to set chunk size for pdf-to-markdown conversion #554

Open
albydeca opened this issue Dec 16, 2024 · 0 comments
Open

Ability to set chunk size for pdf-to-markdown conversion #554

albydeca opened this issue Dec 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@albydeca
Copy link

To the best of my knowledge, the LlamaParse constructor's split_by_page parameter will force the parser to output either one Document per page (if the value is true) or one Document for the entire pdf (if the value is false).

This may be too coarse-grained for some applications. It would be great to allow the user to set a chunk size and a chunking strategy similar to what Unstructured are doing.

This could help especially when the pages to be extracted are dense, chunks are very large, and the embedding vector becomes too generic.

@albydeca albydeca added the enhancement New feature or request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant