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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: llama_index_readers_remote-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 6a4cad2ce2c6aa48ec60f5cb998a44ec9c66520a06f46985e289c8bf83ac826d
MD5 516fa36e6cb6c2886665d51ea8dddeea
BLAKE2b-256 2b2fb35a6182e02c52e558f3694e699ce58dff21aa430c7e52cbffa78acd44d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_remote-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 17dd1f07b8cea002497c5bc7ff58f0e78009ae565517b5007965623983cda828
MD5 ddcd0f292a64e577575f616293128d20
BLAKE2b-256 166f5a367ac20941634d94cd264eb5abbd2adc0889b944d27c5e315bc09a7f13

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