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.4.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_remote-0.4.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_remote-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d31952e73108c77cefc6ec8d82be77032cd1994a9729a43789cffb046a33440d
MD5 2081f106c6647ce922f321d56532d069
BLAKE2b-256 2f2d177dd8d00d9adc68cb953ccd5306df5fdb76a763311b0951ec2bb32472f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_remote-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15209bcd160d7440df1874a99a7c4e0384d781a1eda51b3c361af4e57caa2111
MD5 40d5e2b3507731703f6922d647f574c3
BLAKE2b-256 beb427fbb5b7eedb24019ec2b249a8268cbfe738bedd5f565f1db878a9d623f7

See more details on using hashes here.

Supported by

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