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

Adding the page number in the sources #6

Open
samichaignonmejai opened this issue Jul 11, 2023 · 1 comment
Open

Adding the page number in the sources #6

samichaignonmejai opened this issue Jul 11, 2023 · 1 comment

Comments

@samichaignonmejai
Copy link

Hey, I found out that in the output of doc.metadata was : {"source":"/Users/../doc.pdf","pdf_numpages":1945,"loc":{"lines":{"from":74528,"to":74551}}}>
I wonder if it is possible to extract directly the page number instead of the lines refering to a particular chunck of test.
I tried my best but I can't understand where is the "loc" being built in the code and how to modify it. If anyone has an idea on how to manage it, let me know !

@jeffchuber
Copy link

FYI I think this is LangChain.js question.

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

2 participants