Compare commits

..

10 Commits

Author SHA1 Message Date
Roman Isecke 1fb388b0ae fix linting 2025-11-26 16:10:22 -05:00
Roman Isecke 90e574e2fa convert notebook to use httpx rather than client for now 2025-11-26 16:05:49 -05:00
Roman Isecke f9037cf300 fix linting 2025-11-26 13:50:53 -05:00
Roman Isecke 5078b42e10 generate example for fetching results via parse job id 2025-11-26 13:32:30 -05:00
Roman Isecke 17c267bf7e add logic to fetch parse results using job id from batch item 2025-11-25 16:05:20 -05:00
Roman Isecke 7821b59572 update notebook to use client 2025-11-25 15:59:25 -05:00
Roman Isecke e3ceca8953 don't git track the sample pdfs 2025-11-25 15:52:06 -05:00
Roman Isecke 6071384fd3 tidy 2025-11-25 15:52:06 -05:00
Roman Isecke cb3e2c6202 remove local dev code 2025-11-25 15:52:06 -05:00
Roman Isecke 4d0d567138 create notebook to parse a batch of documents 2025-11-25 15:52:06 -05:00
11 changed files with 8 additions and 79 deletions
-1
View File
@@ -12,7 +12,6 @@ env:
jobs:
test_e2e:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
# You can use PyPy versions in python-version.
# For example, pypy-2.7 and pypy-3.8
-18
View File
@@ -1,23 +1,5 @@
# llama-cloud-services-py
## 0.6.85
### Patch Changes
- ae30990: Add line-level bbox support
## 0.6.84
### Patch Changes
- 0a110de: Release to re-align versions
## 0.6.83
### Patch Changes
- ca78113: Do not use presigned URLs by default in files client
## 0.6.82
### Patch Changes
+1 -1
View File
@@ -15,4 +15,4 @@ test: ## Run unit tests via pytest
.PHONY: e2e
e2e: ## Run all tests. Run with high parallelism using xdist since tests are bottlenecked bound by the slow backend parsing
uv run pytest -v -n 32 --timeout=300 --session-timeout=1740 tests/
uv run pytest -v -n 32 tests/
+2 -2
View File
@@ -11,7 +11,7 @@ from llama_cloud_services.utils import SourceText, FileInput
class FileClient:
"""
Higher-level client for interacting with the LlamaCloud Files API.
Optionally uses presigned URLs for uploads.
Uses presigned URLs for uploads by default.
Args:
client: The LlamaCloud client to use.
@@ -25,7 +25,7 @@ class FileClient:
client: AsyncLlamaCloud,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
use_presigned_url: bool = False,
use_presigned_url: bool = True,
):
self.client = client
self.project_id = project_id
-7
View File
@@ -564,10 +564,6 @@ class LlamaParse(BasePydanticReader):
default=None,
description="Whether to extract the printed page numbers from pages in the document.",
)
line_level_bounding_box: Optional[bool] = Field(
default=False,
description="If set to true, the parser will include line-level bounding boxes in the result.",
)
# Deprecated
bounding_box: Optional[str] = Field(
@@ -1122,9 +1118,6 @@ class LlamaParse(BasePydanticReader):
if self.extract_printed_page_number is not None:
data["extract_printed_page_number"] = self.extract_printed_page_number
if self.line_level_bounding_box is not None:
data["line_level_bounding_box"] = self.line_level_bounding_box
# Deprecated
if self.bounding_box is not None:
data["bounding_box"] = self.bounding_box
-23
View File
@@ -115,26 +115,6 @@ class BBox(SafeBaseModel):
)
class LineLevelBboxItem(SafeBaseModel):
"""A line-level bounding box item."""
md: Optional[str] = Field(
default=None, description="The markdown-formatted content of the line."
)
text: Optional[str] = Field(
default=None, description="The text content of the line."
)
bBox: Optional[BBox] = Field(
default=None, description="The bounding box of the line."
)
startIndex: Optional[int] = Field(
default=None, description="The start index of the line in the page text."
)
endIndex: Optional[int] = Field(
default=None, description="The end index of the line in the page text."
)
class PageItem(SafeBaseModel):
"""An item in a page."""
@@ -158,9 +138,6 @@ class PageItem(SafeBaseModel):
default=None,
description="The HTML-formatted content of the item. Only applicable for table items when output_tables_as_HTML=True.",
)
lines: Optional[List[LineLevelBboxItem]] = Field(
default=None, description="The line-level bounding box items of the item."
)
class ImageItem(SafeBaseModel):
-21
View File
@@ -1,26 +1,5 @@
# llama_parse
## 0.6.85
### Patch Changes
- Updated dependencies [ae30990]
- llama-cloud-services-py@0.6.85
## 0.6.84
### Patch Changes
- Updated dependencies [0a110de]
- llama-cloud-services-py@0.6.84
## 0.6.83
### Patch Changes
- Updated dependencies [ca78113]
- llama-cloud-services-py@0.6.83
## 0.6.82
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "llama_parse",
"version": "0.6.85",
"version": "0.6.82",
"description": "",
"main": "index.js",
"private": false,
+2 -2
View File
@@ -11,13 +11,13 @@ dev = [
[project]
name = "llama-parse"
version = "0.6.85"
version = "0.6.83"
description = "Parse files into RAG-Optimized formats."
authors = [{name = "Logan Markewich", email = "logan@llamaindex.ai"}]
requires-python = ">=3.9,<4.0"
readme = "README.md"
license = "MIT"
dependencies = ["llama-cloud-services>=0.6.85"]
dependencies = ["llama-cloud-services>=0.6.82"]
[project.scripts]
llama-parse = "llama_parse.cli.main:parse"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "llama-cloud-services-py",
"version": "0.6.85",
"version": "0.6.82",
"private": false,
"license": "MIT",
"scripts": {},
+1 -2
View File
@@ -7,7 +7,6 @@ dev = [
"pytest>=8.0.0,<9",
"pytest-xdist>=3.6.1,<4",
"pytest-asyncio",
"pytest-timeout>=2.3.1",
"ipykernel>=6.29.0,<7",
"pre-commit==3.2.0",
"autoevals>=0.0.114,<0.0.115",
@@ -23,7 +22,7 @@ dev = [
[project]
name = "llama-cloud-services"
version = "0.6.85"
version = "0.6.83"
description = "Tailored SDK clients for LlamaCloud services."
authors = [{name = "Logan Markewich", email = "logan@runllama.ai"}]
requires-python = ">=3.9,<4.0"