Skip to content

Commit

Permalink
Release is_formatting_instruction parameter (#446)
Browse files Browse the repository at this point in the history
* Release is_formatting_instruction parameter

* Add annotate links
  • Loading branch information
BinaryBrain authored Oct 17, 2024
1 parent 386d210 commit 951ba4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,14 @@ class LlamaParse(BasePydanticReader):
default=False,
description="Disable the OCR on the document. LlamaParse will only extract the copyable text from the document.",
)
# Coming Soon
# annotate_links: bool = Field(
# default=False,
# description="Annotate links found in the document to extract their URL.",
# )
is_formatting_instruction: bool = Field(
default=True,
description="Allow the parsing instruction to also format the output. Disable to have a cleaner markdown output.",
)
annotate_links: bool = Field(
default=False,
description="Annotate links found in the document to extract their URL.",
)
webhook_url: Optional[str] = Field(
default=None,
description="A URL that needs to be called at the end of the parsing job.",
Expand Down Expand Up @@ -265,7 +268,8 @@ async def _create_job(
"vendor_multimodal_model_name": self.vendor_multimodal_model_name,
"take_screenshot": self.take_screenshot,
"disable_ocr": self.disable_ocr,
# "annotate_links": self.annotate_links,
"is_formatting_instruction": self.is_formatting_instruction,
"annotate_links": self.annotate_links,
}

# only send page separator to server if it is not None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "llama-parse"
version = "0.5.9"
version = "0.5.10"
description = "Parse files into RAG-Optimized formats."
authors = ["Logan Markewich <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 951ba4d

Please sign in to comment.