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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_readers_remote-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c57f8e3431b9cb8e6975f03454d5a318ef799ac23de20a18fa179456c00e1f32
MD5 7f1e574e5f949b299d525a492fc2a067
BLAKE2b-256 e057cb1645fbd09784c2c55946954f8794e8f364a7624d34a151b8b2db3d5c9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_remote-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 423d417b2557a03aa579d9dc4ec2385b1c654949841697ac8c2f5c44fa65f8b2
MD5 16eb18f70dd7de535ae027f7ab08d5ca
BLAKE2b-256 b53de0fa235d6e89fecaa56396323d9f325b578ff7fd20ced83f564558bbb2db

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