binding parameter 0 #35

Open
opened 2026-02-16 00:16:40 -05:00 by yindo · 1 comment
Owner

Originally created by @m13v on GitHub (Mar 7, 2024).

Hi there, for some reason some of my pdfs are not processed, I get an error.

Reference code:
def convert_pdf_to_markdown(file_name):
# Necessary for running async code in notebooks or scripts
nest_asyncio.apply()

# Initialize the LlamaParse parser
parser = LlamaParse(
    api_key=llamaindex_api_key,
    result_type="markdown",  # Choose "markdown" as the output format
    verbose=True,  # Enable verbose output to see detailed logs
)

# Define the path to your PDF file
pdf_file_path = os.path.join("./papers/", file_name)
print(pdf_file_path, "type:", type(pdf_file_path))
# Convert the PDF to Markdown
# This is a synchronous call, you can also use asynchronous calls as shown in the documentation
documents = parser.load_data(pdf_file_path)

# Return the converted documents
return documents

Terminal:
./papers/Retrieval-Augmented_Generation_for_Knowledge-Intensive_NLP_Tasks.pdf type: <class 'str'>
Started parsing the file under job_id 6b58df53-9d59-4286-8e88-427e3e93d956
An error occurred while updating paper rowid 77: Error binding parameter 0 - probably unsupported type.
./papers/RA-DIT_Retrieval-Augmented_Dual_Instruction_Tuning.pdf type: <class 'str'>
Started parsing the file under job_id fe3b8c19-0248-431a-a497-30c119a0694e
An error occurred while updating paper rowid 79: Error binding parameter 0 - probably unsupported type.
./papers/ColBERT_Efficient_and_Effective_Passage_Search_via_Contextualized_Late
__Interaction_over_BERT.pdf type: <class 'str'>
Started parsing the file under job_id c97fc58f-9e15-4e38-819e-90a0b140bfb8
An error occurred while updating paper rowid 80: Error binding parameter 0 - probably unsupported type.
./papers/Lost_in_the_Middle_How_Language_Models_Use_Long_Contexts.pdf type: <class 'str'>
Started parsing the file under job_id 16b4aee0-25a4-4f7f-926d-4d96a779567b
An error occurred while updating paper rowid 81: Error binding parameter 0 - probably unsupported type.
./papers/Enhancing_Recommender_Systems_with_Large_Language_Model_Reasoning_Graphs.pdf type: <class 'str'>
Started parsing the file under job_id a35e8ce8-cae6-4885-8e59-fcfecea99f59
An error occurred while updating paper rowid 84: Error binding parameter 0 - probably unsupported type.
./papers/LIMA_Less_Is_More_for_Alignment.pdf type: <class 'str'>
Started parsing the file under job_id 51a97a81-db5b-4432-951d-429a403620dc
An error occurred while updating paper rowid 85: Error binding parameter 0 - probably unsupported type.
./papers/Retrieval-Augmented_Generation_for_Knowledge-Intensive_NLP_Tasks.pdf type: <class 'str'>
Started parsing the file under job_id 1298bad1-3537-40f8-9563-641d53ef852c
An error occurred while updating paper rowid 92: Error binding parameter 0 - probably unsupported type.
./papers/Retrieval-Augmented_Generation_for_Large_Language_Models_A_Survey.pdf type: <class 'str'>
Started parsing the file under job_id 36e20f5d-2dd9-466d-bf6d-4c136d684ef9
An error occurred while updating paper rowid 102: Error binding parameter 0 - probably unsupported type.

Screenshot 2024-03-07 at 12 51 08 PM

Originally created by @m13v on GitHub (Mar 7, 2024). Hi there, for some reason some of my pdfs are not processed, I get an error. Reference code: def convert_pdf_to_markdown(file_name): # Necessary for running async code in notebooks or scripts nest_asyncio.apply() # Initialize the LlamaParse parser parser = LlamaParse( api_key=llamaindex_api_key, result_type="markdown", # Choose "markdown" as the output format verbose=True, # Enable verbose output to see detailed logs ) # Define the path to your PDF file pdf_file_path = os.path.join("./papers/", file_name) print(pdf_file_path, "type:", type(pdf_file_path)) # Convert the PDF to Markdown # This is a synchronous call, you can also use asynchronous calls as shown in the documentation documents = parser.load_data(pdf_file_path) # Return the converted documents return documents Terminal: ./papers/Retrieval-Augmented_Generation_for_Knowledge-Intensive_NLP_Tasks.pdf type: <class 'str'> Started parsing the file under job_id 6b58df53-9d59-4286-8e88-427e3e93d956 An error occurred while updating paper rowid 77: Error binding parameter 0 - probably unsupported type. ./papers/RA-DIT_Retrieval-Augmented_Dual_Instruction_Tuning.pdf type: <class 'str'> Started parsing the file under job_id fe3b8c19-0248-431a-a497-30c119a0694e An error occurred while updating paper rowid 79: Error binding parameter 0 - probably unsupported type. ./papers/ColBERT_Efficient_and_Effective_Passage_Search_via_Contextualized_Late __Interaction_over_BERT.pdf type: <class 'str'> Started parsing the file under job_id c97fc58f-9e15-4e38-819e-90a0b140bfb8 An error occurred while updating paper rowid 80: Error binding parameter 0 - probably unsupported type. ./papers/Lost_in_the_Middle_How_Language_Models_Use_Long_Contexts.pdf type: <class 'str'> Started parsing the file under job_id 16b4aee0-25a4-4f7f-926d-4d96a779567b An error occurred while updating paper rowid 81: Error binding parameter 0 - probably unsupported type. ./papers/Enhancing_Recommender_Systems_with_Large_Language_Model_Reasoning_Graphs.pdf type: <class 'str'> Started parsing the file under job_id a35e8ce8-cae6-4885-8e59-fcfecea99f59 An error occurred while updating paper rowid 84: Error binding parameter 0 - probably unsupported type. ./papers/LIMA_Less_Is_More_for_Alignment.pdf type: <class 'str'> Started parsing the file under job_id 51a97a81-db5b-4432-951d-429a403620dc An error occurred while updating paper rowid 85: Error binding parameter 0 - probably unsupported type. ./papers/Retrieval-Augmented_Generation_for_Knowledge-Intensive_NLP_Tasks.pdf type: <class 'str'> Started parsing the file under job_id 1298bad1-3537-40f8-9563-641d53ef852c An error occurred while updating paper rowid 92: Error binding parameter 0 - probably unsupported type. ./papers/Retrieval-Augmented_Generation_for_Large_Language_Models_A_Survey.pdf type: <class 'str'> Started parsing the file under job_id 36e20f5d-2dd9-466d-bf6d-4c136d684ef9 An error occurred while updating paper rowid 102: Error binding parameter 0 - probably unsupported type. ![Screenshot 2024-03-07 at 12 51 08 PM](https://github.com/run-llama/llama_parse/assets/104702220/b48a9b78-1933-4167-93d9-1f7c605c7899)
yindo added the bug label 2026-02-16 00:16:40 -05:00
Author
Owner

@hexapode commented on GitHub (Mar 8, 2024):

Could you share one of your pdf?

@hexapode commented on GitHub (Mar 8, 2024): Could you share one of your pdf?
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#35