Skip to content

Parsing 2 page PDF file taking a long time. #103

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

Open
poornimapk opened this issue Mar 19, 2024 · 1 comment
Open

Parsing 2 page PDF file taking a long time. #103

poornimapk opened this issue Mar 19, 2024 · 1 comment

Comments

@poornimapk
Copy link

I am new to LlamaIndex and LlamaParse
I am using below code to parse PDF file:
def main():
load_dotenv()
nest_asyncio.apply()
LLAMA_CLOUD_API_KEY = os.getenv("LLAMA_CLOUD_API_KEY")

#setup parser
parser = LlamaParse(
    api_key=LLAMA_CLOUD_API_KEY,
    result_type="markdown",
    verbose=True,
)

documents = parser.load_data("./data/Oracle-SEC-Filing.pdf")
print(documents)

It takes more than 15 minutes and still has not finished parsing. What am I doing wrong? The pdf is a 2 page PDF attached here.
Oracle-SEC-Filing.pdf

@poornimapk
Copy link
Author

#83 seems to be the same issue

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