Find answers from the community

Updated 3 months ago

Llamaparse

At a glance

A community member is experiencing an issue with the LlamaParse library, where it is returning plain text instead of an array of documents, which is breaking some functionality. The community member has tried using different settings, such as changing the language and premium mode, but the issue persists. Another community member suggests that the issue may be related to the file being processed. The community member then discovers that the issue is specifically with the "gpt-4o-mini" model, and that the issue is resolved when using the "gpt-4o" model instead.

Guys, yesterday i had llama parse returning an array of documents after parsing (as it should). Today is returning plain text and its breaking some stuff... any news on that?

Plain Text
 parser = LlamaParse(
                result_type="markdown",
                language="pt",
                premium_mode=True if mode == "premium" else False,
                split_by_page=False,
                disable_ocr=True,
                skip_diagonal_text=True,
                **parse_params,
            )

            start_parse = timer()

            file_extractor = {".pdf": parser}
            documents = SimpleDirectoryReader(
                input_files=[file_path], file_extractor=file_extractor
            ).load_data()
W
v
4 comments
@Sacha Bron could you please take a look into this🙏
actually it is working for other PDFs, just ignore it for now, i'll try to get more info
I see, maybe there is some issue in your file?
Got it!

Plain Text
print("Parsing nodes...")
            node_parser = MarkdownElementNodeParser(
                llm=llama_utils.create_openai_llm(model="gpt-4o-mini"), num_workers=8
            )
            nodes = node_parser.get_nodes_from_documents(documents)
            print("Nodes parsed")


for some reason gpt-4o-mini response is causing this error... it is working with gpt-4o

Sorry about that
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord