Closed leehuwuj closed 2 months ago
Latest commit: 3c25aa09512e0c47f1a48c6b83fc5eb9e3ccdfb9
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The update integrates LlamaParse, expanding its utility to all supported file types. This is implemented by adding a new function llama_parse_extractor()
in file.py
to configure file parsing, which is then employed in get_file_documents()
to enhance document extraction capabilities with LlamaParse.
File | Change Summary |
---|---|
.../loaders/python/file.py | Added llama_parse_extractor() function and updated get_file_documents() to use it; changes involve setting file_extractor in SimpleDirectoryReader . |
.changeset/olive-knives-cheat.md | Documented the introduction of LlamaParse integration. |
sequenceDiagram
participant Client
participant FileLoader
participant LlamaParse
participant SimpleDirectoryReader
Client->>FileLoader: call get_file_documents()
FileLoader->>FileLoader: call llama_parse_extractor()
FileLoader->>LlamaParse: Create instances
FileLoader->>SimpleDirectoryReader: Instantiate with file_extractor
SimpleDirectoryReader->>LlamaParse: Use file_extractor for parsing
SimpleDirectoryReader->>Client: Return parsed documents
LlamaParse
whispers to each file, With gentle grace and modern style.
Python scripts, they now can see,
The llama's wisdom, wild and free.
Code and data intertwined,
A step ahead, a leap in mind.
🎩✨📂
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Do not mere this PR yet! Having an error with LlamaParse:
Summary by CodeRabbit