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.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f50aba8afef3cc70516438e37bbb010a84faa7029c27dc3e993db8aaf78fbc22 |
|
MD5 | 2755e06cc0d2d5b4814ada36c53431fe |
|
BLAKE2b-256 | 767f0e6a1d57b4f6e0b75e2e5d703e8651f55bbf8c26e3be9464656e45875605 |
File details
Details for the file llama_index_readers_remote-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_remote-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17920a7037eb5657af8161c0a0821867b07dc2baf9c4847c84bdc9e9fb611414 |
|
MD5 | 3a837e8857628e383909d77a792ec0cd |
|
BLAKE2b-256 | 7afc554b0f6f62d352508c52edcedc7feca11def91a14392de0853aacdb89db5 |