run-llama / llama_extract

MIT License
105 stars 16 forks source link

The `infer_schema` method, not available on `LlamaParse` object. `AttributeError` #27

Open RemoSande opened 3 months ago

RemoSande commented 3 months ago

LlamaParse Bug Report

Environment

Description

The infer_schema method, which is expected to be available on the LlamaParse object, is not present. This leads to an AttributeError when trying to use this method.

Steps to Reproduce

  1. Install LlamaParse version 0.4.9
  2. Create a Python script with the following content:

    from llama_parse import LlamaParse
    
    extractor = LlamaParse()
    extraction_schema = extractor.infer_schema("Our Schema", [
       "path/to/your/file.pdf",
    ])
  3. Run the script

Expected Behavior

The infer_schema method should be available and execute without raising an AttributeError.

Actual Behavior

An AttributeError is raised with the message:

AttributeError: 'LlamaParse' object has no attribute 'infer_schema'

Additional Information

Possible Workarounds

None identified at this time. Users of version 0.4.9 cannot use the infer_schema method as expected.

Impact

This issue prevents users from using the infer_schema method, which may be a critical functionality for many workflows involving LlamaParse. It requires users to find alternative methods or potentially use older versions of the library.

Additional Notes

It would be helpful to clarify in the documentation or release notes if the infer_schema method has been deprecated or replaced by another method in version 0.4.9.