[PR #154] [MERGED] feat: use LlamaParse for all the supported types #303

Closed
opened 2026-02-15 19:17:07 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/154
Author: @leehuwuj
Created: 7/5/2024
Status: Merged
Merged: 7/9/2024
Merged by: @marcusschiesser

Base: mainHead: lee/llama-parse-reader


📝 Commits (3)

  • 39f308d use llamaparse for all the supported types
  • 786ca59 Create olive-knives-cheat.md
  • 3c25aa0 refactor code

📊 Changes

2 files changed (+22 additions, -5 deletions)

View changed files

.changeset/olive-knives-cheat.md (+5 -0)
📝 templates/components/loaders/python/file.py (+17 -5)

📄 Description

Do not mere this PR yet!
Having an error with LlamaParse:

Error while parsing the file '<bytes/buffer>': file_input must be either a file path string, file bytes, or buffer object
Traceback (most recent call last):
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_index/core/readers/file/base.py", line 538, in load_file
    docs = reader.load_data(input_file, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 343, in load_data
    return asyncio.run(self.aload_data(file_path, extra_info))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/nest_asyncio.py", line 30, in run
    return loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/nest_asyncio.py", line 98, in run_until_complete
    return f.result()
           ^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/futures.py", line 203, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/tasks.py", line 267, in __step
    result = coro.send(None)
             ^^^^^^^^^^^^^^^
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 304, in aload_data
    return await self._aload_data(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 295, in _aload_data
    raise e
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 270, in _aload_data
    job_id = await self._create_job(file_path, extra_info=extra_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 182, in _create_job
    raise ValueError(
ValueError: file_input must be either a file path string, file bytes, or buffer object

Summary by CodeRabbit

  • New Features
    • Introduced LlamaParse for enhanced file parsing across supported file types.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/154 **Author:** [@leehuwuj](https://github.com/leehuwuj) **Created:** 7/5/2024 **Status:** ✅ Merged **Merged:** 7/9/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `lee/llama-parse-reader` --- ### 📝 Commits (3) - [`39f308d`](https://github.com/run-llama/create-llama/commit/39f308dc7b2eee86d92efd294e70a5153bc66567) use llamaparse for all the supported types - [`786ca59`](https://github.com/run-llama/create-llama/commit/786ca5965a6727625f4ff5372b2ba252bd1e383d) Create olive-knives-cheat.md - [`3c25aa0`](https://github.com/run-llama/create-llama/commit/3c25aa09512e0c47f1a48c6b83fc5eb9e3ccdfb9) refactor code ### 📊 Changes **2 files changed** (+22 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/olive-knives-cheat.md` (+5 -0) 📝 `templates/components/loaders/python/file.py` (+17 -5) </details> ### 📄 Description Do not mere this PR yet! Having an error with LlamaParse: ``` Error while parsing the file '<bytes/buffer>': file_input must be either a file path string, file bytes, or buffer object Traceback (most recent call last): File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_index/core/readers/file/base.py", line 538, in load_file docs = reader.load_data(input_file, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 343, in load_data return asyncio.run(self.aload_data(file_path, extra_info)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/nest_asyncio.py", line 30, in run return loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/tasks.py", line 267, in __step result = coro.send(None) ^^^^^^^^^^^^^^^ File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 304, in aload_data return await self._aload_data( ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 295, in _aload_data raise e File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 270, in _aload_data job_id = await self._create_job(file_path, extra_info=extra_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/huu/Library/Caches/pypoetry/virtualenvs/app-p4JNq43d-py3.11/lib/python3.11/site-packages/llama_parse/base.py", line 182, in _create_job raise ValueError( ValueError: file_input must be either a file path string, file bytes, or buffer object ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced LlamaParse for enhanced file parsing across supported file types. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:17:07 -05:00
yindo closed this issue 2026-02-15 19:17:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#303