Skip to main content

llama-index readers remote integration

Project description

Remote Page/File Loader

pip install llama-index-readers-remote

This loader makes it easy to extract the text from any remote page or file using just its url. If there's a file at the url, this loader will download it temporarily and parse it using SimpleDirectoryReader. It is an all-in-one tool for (almost) any url.

As a result, any page or type of file is supported. For instance, if a .txt url such as a Project Gutenberg book is passed in, the text will be parsed as is. On the other hand, if a hosted .mp3 url is passed in, it will be downloaded and parsed using AudioTranscriber.

Usage

To use this loader, you need to pass in a Path to a local file. Optionally, you may specify a file_extractor for the SimpleDirectoryReader to use, other than the default one.

from llama_index.readers.remote import RemoteReader

loader = RemoteReader()
documents = loader.load_data(
    url="https://en.wikipedia.org/wiki/File:Example.jpg"
)

This loader is designed to be used as a way to load data into LlamaIndex.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_remote-0.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_remote-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_remote-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0fddebc1bdacbe7108455260549fcf043d3c9635de32827ee802aad776013671
MD5 a6504488686002b5399cbd6b00e2d217
BLAKE2b-256 ca4e08872c0dfc25642cecb6023a3da9606ff1176ff77c25a00c0df40e23f183

See more details on using hashes here.

File details

Details for the file llama_index_readers_remote-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_remote-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd32f734b13a458e43fa4dcb265a3dc59dfcab9d785550b5fd3bd41fa5491106
MD5 d1f853da3c17a3db65d7cb11371360ed
BLAKE2b-256 dadb18210ad9ae5e794572ab22b70ba1de7c1b8fe1c4852fa8d9c621265a2b41

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page