-
Notifications
You must be signed in to change notification settings - Fork 301
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
Page numbers returned in response #57
Comments
Currently page number is not returned in the metadata. But page content is separated using "-----------". You can separate the text based on the string pattern and provide page number for that by yourself. PS: Adding more info in metadata is being implemented and will be available soon. |
We will provide a more reliable way to get page number (JSON output) in a future release |
@hexapode When would such a release come? Until then is @anoopshrma suggestion a valid solution? Can we just replace each occurence of "-----------" with its respective page number? Would be nice if you could approve this @hexapode |
Hey @Laktus , json mode is out for quite some time now. |
@anoopshrma Hi, is there also LlamaIndexTS support? Can i somewhere see a list of all supported modes? (Markdown, JSON, any more?). Thanks. |
Hey @Laktus, I am facing the same issue, I am using LlamaParseReader in typescript and I don't see the json format there, just text and markdown |
You can now retrieve page numbers and other information using the Json output. Using the API:
Using the TS lib: const reader = new LlamaParseReader({ resultType: "json" });
const json = await reader.loadJson(path); |
Hi, Can we get the page number using Python? |
what is the JobID? |
Yes, if you get the Json results. You can also use
https://docs.cloud.llamaindex.ai/llamaparse/getting_started/api |
For some indexing into our VectorDB, it's very helpful to know the page numbers if possible.
Is this feature possible now, or to add?
Either way, love the library. Great work!
The text was updated successfully, but these errors were encountered: