Skip to main content

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


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_lyrenth-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_lyrenth-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_lyrenth-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_lyrenth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19c19e7a58c2b55388d013f7c86cb709778a284680e54d2d47390b3260612c68
MD5 e06c7c8afb675b514bf4e1ccac47b29d
BLAKE2b-256 6bafa33f56addeba53a690f481f6fe7141bc4b6658aaebcdd8cbc09fbc8ad4e6

See more details on using hashes here.

File details

Details for the file llama_index_readers_lyrenth-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_lyrenth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f38d3dc7429595c6d58ffc08241dac038bc1bda30fb41be2a9b817ecc16b68
MD5 9c9d6cfa5cfb6be51476625b8332a097
BLAKE2b-256 d8d3ce78a8bc41b752ee351cf3299d35d92c14e4820bcdfad366946a51e77d38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page