Where is the md file stored? #47

Closed
opened 2026-02-16 00:16:43 -05:00 by yindo · 6 comments
Owner

Originally created by @Shubham-Khichi on GitHub (Mar 16, 2024).

I am trying to use the Llama_parse in google collab notebook to test it out.

This is the code:

import nest_asyncio
nest_asyncio.apply()

from llama_parse import LlamaParse

parser = LlamaParse(
api_key="llx-my-API",
result_type="markdown",
num_workers=4,
verbose=True,
language="en"
)

sync

documents = parser.load_data("./coding.pdf")

sync batch

#documents = parser.load_data(["./my_file1.pdf", "./my_file2.pdf"])

async

#documents = await parser.aload_data("./my_file.pdf")

async batch

#documents = await parser.aload_data(["./my_file1.pdf", "./my_file2.pdf"])

It says that: Started parsing the file under job_id

But where is the markdown file saved? Couldnt find it on the cloud nor in the collab notebook

Originally created by @Shubham-Khichi on GitHub (Mar 16, 2024). I am trying to use the Llama_parse in google collab notebook to test it out. This is the code: import nest_asyncio nest_asyncio.apply() from llama_parse import LlamaParse parser = LlamaParse( api_key="llx-my-API", result_type="markdown", num_workers=4, verbose=True, language="en" ) # sync documents = parser.load_data("./coding.pdf") # sync batch #documents = parser.load_data(["./my_file1.pdf", "./my_file2.pdf"]) # async #documents = await parser.aload_data("./my_file.pdf") # async batch #documents = await parser.aload_data(["./my_file1.pdf", "./my_file2.pdf"]) It says that: Started parsing the file under job_id <Long Job ID> But where is the markdown file saved? Couldnt find it on the cloud nor in the collab notebook
yindo closed this issue 2026-02-16 00:16:43 -05:00
Author
Owner

@logan-markewich commented on GitHub (Mar 17, 2024):

This just means that the parsing job has started on the remote server. Once its done, the function will return the parsed PDF files

@logan-markewich commented on GitHub (Mar 17, 2024): This just means that the parsing job has started on the remote server. Once its done, the function will return the parsed PDF files
Author
Owner

@Shubham-Khichi commented on GitHub (Mar 17, 2024):

This just means that the parsing job has started on the remote server. Once its done, the function will return the parsed PDF files

Question is where will it return? Been a few hours and cannot find the md file on colab notebook or the cloud.

@Shubham-Khichi commented on GitHub (Mar 17, 2024): > This just means that the parsing job has started on the remote server. Once its done, the function will return the parsed PDF files Question is where will it return? Been a few hours and cannot find the md file on colab notebook or the cloud.
Author
Owner

@logan-markewich commented on GitHub (Mar 17, 2024):

In the variable you assign it to

For example
documents = await parser.aload_data(["./my_file1.pdf", "./my_file2.pdf"])

Here, it's in the documents variable. It may take a few minutes if it's a larger file, but it will either return or raise an error

@logan-markewich commented on GitHub (Mar 17, 2024): In the variable you assign it to For example `documents = await parser.aload_data(["./my_file1.pdf", "./my_file2.pdf"])` Here, it's in the documents variable. It may take a few minutes if it's a larger file, but it will either return or raise an error
Author
Owner

@Shubham-Khichi commented on GitHub (Mar 17, 2024):

OK will give this a try

@Shubham-Khichi commented on GitHub (Mar 17, 2024): OK will give this a try
Author
Owner

@stockcoder commented on GitHub (Apr 21, 2024):

In the variable you assign it to

For example documents = await parser.aload_data(["./my_file1.pdf", "./my_file2.pdf"])

Here, it's in the documents variable. It may take a few minutes if it's a larger file, but it will either return or raise an error

I want to know how to save the markdown files to my disk? Can you give me some code?

@stockcoder commented on GitHub (Apr 21, 2024): > In the variable you assign it to > > For example `documents = await parser.aload_data(["./my_file1.pdf", "./my_file2.pdf"])` > > Here, it's in the documents variable. It may take a few minutes if it's a larger file, but it will either return or raise an error I want to know how to save the markdown files to my disk? Can you give me some code?
Author
Owner

@logan-markewich commented on GitHub (Apr 22, 2024):

@stockcoder it's just like writing normal text to a file?

documents = reader.load_data("file.pdf")

with open("file.md", "w") as f.
  f.write(documents[0].text)

Here I only loaded one file, so the list of documents returned only has one item.

@logan-markewich commented on GitHub (Apr 22, 2024): @stockcoder it's just like writing normal text to a file? ``` documents = reader.load_data("file.pdf") with open("file.md", "w") as f. f.write(documents[0].text) ``` Here I only loaded one file, so the list of documents returned only has one item.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#47