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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: llama_index_readers_remote-0.1.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for llama_index_readers_remote-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f50aba8afef3cc70516438e37bbb010a84faa7029c27dc3e993db8aaf78fbc22
MD5 2755e06cc0d2d5b4814ada36c53431fe
BLAKE2b-256 767f0e6a1d57b4f6e0b75e2e5d703e8651f55bbf8c26e3be9464656e45875605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_remote-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 17920a7037eb5657af8161c0a0821867b07dc2baf9c4847c84bdc9e9fb611414
MD5 3a837e8857628e383909d77a792ec0cd
BLAKE2b-256 7afc554b0f6f62d352508c52edcedc7feca11def91a14392de0853aacdb89db5

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