Compare commits

...

1 Commits

Author SHA1 Message Date
Pierre-Loic Doulcet 5f76d45e78 add auto_mode_configuration_jon for llamaParse 2025-04-29 15:03:46 +08:00
3 changed files with 9 additions and 2 deletions
+7
View File
@@ -145,6 +145,10 @@ class LlamaParse(BasePydanticReader):
default=False,
description="If set to true, the parser will automatically select the best mode to extract text from documents based on the rules provide. Will use the 'accurate' default mode by default and will upgrade page that match the rule to Premium mode.",
)
auto_mode_configuration_json: Optional[str] = Field(
default=None,
description="A JSON string containing the configuration for the auto mode. If set, the parser will use the provided configuration for the auto mode.",
)
auto_mode_trigger_on_image_in_page: Optional[bool] = Field(
default=False,
description="If auto_mode is set to true, the parser will upgrade the page that contain an image to Premium mode.",
@@ -586,6 +590,9 @@ class LlamaParse(BasePydanticReader):
if self.auto_mode:
data["auto_mode"] = self.auto_mode
if self.auto_mode_configuration_json is not None:
data["auto_mode_configuration_json"] = self.auto_mode_configuration_json
if self.auto_mode_trigger_on_image_in_page:
data[
"auto_mode_trigger_on_image_in_page"
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "llama-parse"
version = "0.6.18"
version = "0.6.19"
description = "Parse files into RAG-Optimized formats."
authors = ["Logan Markewich <logan@llamaindex.ai>"]
license = "MIT"
+1 -1
View File
@@ -8,7 +8,7 @@ python_version = "3.10"
[tool.poetry]
name = "llama-cloud-services"
version = "0.6.18"
version = "0.6.19"
description = "Tailored SDK clients for LlamaCloud services."
authors = ["Logan Markewich <logan@runllama.ai>"]
license = "MIT"