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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_readers_remote-0.2.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_remote-0.2.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c57f8e3431b9cb8e6975f03454d5a318ef799ac23de20a18fa179456c00e1f32 |
|
MD5 | 7f1e574e5f949b299d525a492fc2a067 |
|
BLAKE2b-256 | e057cb1645fbd09784c2c55946954f8794e8f364a7624d34a151b8b2db3d5c9d |
File details
Details for the file llama_index_readers_remote-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_remote-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 423d417b2557a03aa579d9dc4ec2385b1c654949841697ac8c2f5c44fa65f8b2 |
|
MD5 | 16eb18f70dd7de535ae027f7ab08d5ca |
|
BLAKE2b-256 | b53de0fa235d6e89fecaa56396323d9f325b578ff7fd20ced83f564558bbb2db |