Compare commits

...

2 Commits

Author SHA1 Message Date
Pierre-Loic Doulcet 106d56455e Merge branch 'main' into fastMode 2024-05-29 15:35:16 -07:00
Pierre-Loic Doulcet 938ffbc47f Add the fast mode flag 2024-05-23 20:22:19 +02:00
+5
View File
@@ -73,6 +73,10 @@ class LlamaParse(BasePydanticReader):
default=None,
description="The API key for the GPT-4o API. Lowers the cost of parsing.",
)
fast_mode: bool = Field(
default=False,
description="Super fast mode for parsing. Only output Text, do not extract tables, images, etc.",
)
ignore_errors: bool = Field(
default=True,
description="Whether or not to ignore and skip errors raised during parsing.",
@@ -129,6 +133,7 @@ class LlamaParse(BasePydanticReader):
data={
"language": self.language.value,
"parsing_instruction": self.parsing_instruction,
"fast_mode": self.fast_mode,
"invalidate_cache": self.invalidate_cache,
"skip_diagonal_text": self.skip_diagonal_text,
"gpt4o_mode": self.gpt4o_mode,