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

The metadata of the file created by the TextSplitter class (doSplitDocuments method) is getting the incorrect page number #1

Open
iAMSagar44 opened this issue Mar 3, 2024 · 0 comments

Comments

@iAMSagar44
Copy link

After running this application I noticed that there are 12 entries in the vector_store table, but the page_number field (in the metadata column) for all the entries is shown as 10.

`vector_store=# select metadata from vector_store;
metadata

{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
{"file_name": "/target/classes/data/medicaid-wa-faqs.pdf", "page_number": 10}
(12 rows)`

Looks like the doSplitDocuments method in the TextSplitter class is generating this incorrect page_number for all the documents.

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

No branches or pull requests

1 participant