LlamaIndex reader for Lyrenth: read URLs as clean AIDocuments.
Project description
llama-index-readers-lyrenth
A LlamaIndex reader backed by Lyrenth. Reads any URL as a clean AIDocument: cleaned Markdown plus title, description, and structure, with navigation and boilerplate stripped, through Lyrenth's cached index.
Install
pip install llama-index-readers-lyrenth
Get a free API key at https://lyrenth.com/signup and set it as
LYRENTH_API_KEY.
Usage
from llama_index.readers.lyrenth import LyrenthReader
docs = LyrenthReader().load_data(
["https://example.com/a", "https://example.com/b"]
)
# docs -> list[llama_index.core.Document]
# docs[0].text -> cleaned Markdown
# docs[0].metadata -> {"source", "title", "description", "word_count"}
Pass fresh=True to force a live re-fetch instead of the cached copy, or
client= to reuse a configured lyrenth.Lyrenth.
Why
- Cleaner, cheaper input for RAG: one stable shape per URL, far fewer tokens than raw HTML.
- Cached across callers, so repeat URLs are fast and origin-friendly.
The AIDocument format is an open contract; see https://lyrenth.com/llms-full.txt. MIT licensed.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_lyrenth-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_readers_lyrenth-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19c19e7a58c2b55388d013f7c86cb709778a284680e54d2d47390b3260612c68
|
|
| MD5 |
e06c7c8afb675b514bf4e1ccac47b29d
|
|
| BLAKE2b-256 |
6bafa33f56addeba53a690f481f6fe7141bc4b6658aaebcdd8cbc09fbc8ad4e6
|
File details
Details for the file llama_index_readers_lyrenth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_lyrenth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7f38d3dc7429595c6d58ffc08241dac038bc1bda30fb41be2a9b817ecc16b68
|
|
| MD5 |
9c9d6cfa5cfb6be51476625b8332a097
|
|
| BLAKE2b-256 |
d8d3ce78a8bc41b752ee351cf3299d35d92c14e4820bcdfad366946a51e77d38
|