Skip to main content

DeepLightRAG: High-performance Document Indexing and Retrieval System (use with any LLM)

Project description

DeepLightRAG

DeepLightRAG is a high-performance document indexing and retrieval system designed to work with any Large Language Model (LLM). It features a dual-layer graph architecture (Visual-Spatial and Entity-Relationship) to provide context-aware and visually-grounded retrieval.

Features

  • Dual-Layer Graph: Combines visual layout awareness with semantic entity relationships.
  • Visual-Grounded Retrieval: Retrieves not just text, but visual regions and their spatial context.
  • Robust OCR: Integrated with DeepSeek-OCR and EasyOCR fallback for reliable text extraction.
  • Advanced NER: Uses GLiNER for zero-shot entity recognition.
  • Flexible LLM Support: Compatible with OpenAI, Google Gemini, Anthropic, and local LLMs via MLX/Ollama.

Installation

pip install deeplightrag

Usage

Index a document:

deeplightrag index document.pdf

Query the index:

deeplightrag query "What is the main topic?"

License

MIT License

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

deeplightrag-1.0.4.tar.gz (142.6 kB view details)

Uploaded Source

Built Distribution

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

deeplightrag-1.0.4-py3-none-any.whl (156.1 kB view details)

Uploaded Python 3

File details

Details for the file deeplightrag-1.0.4.tar.gz.

File metadata

  • Download URL: deeplightrag-1.0.4.tar.gz
  • Upload date:
  • Size: 142.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for deeplightrag-1.0.4.tar.gz
Algorithm Hash digest
SHA256 9dc2e2b2e40a127c44ea84e4a4ed1f25fac3ad68cad756d52300a178a5ddf8c4
MD5 8281e477ded53a7106ec40888d5148d9
BLAKE2b-256 9d5026a8b9f045b92fa826aac84d4d6d5ac8bc6220f8c529fb8cbc7fd49e0d0b

See more details on using hashes here.

File details

Details for the file deeplightrag-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: deeplightrag-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 156.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for deeplightrag-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1da42d25e4649f376e96a86b38e0f80d527cb29a7e25835c7ea7de36d98e24d4
MD5 e4b656f6994c33fc6fcc95b8ef78753c
BLAKE2b-256 275112486c284d540b4b1d03038c4840ef19f55f8f5ee52750b93a0da639aa4e

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