Skip to content

Add LightRAG demo with PostgreSQL and Gemini integration#2556

Merged
danielaskdd merged 1 commit intoHKUDS:mainfrom
vishvaRam:patch-3
Dec 30, 2025
Merged

Add LightRAG demo with PostgreSQL and Gemini integration#2556
danielaskdd merged 1 commit intoHKUDS:mainfrom
vishvaRam:patch-3

Conversation

@vishvaRam
Copy link
Contributor

Description

Adds a new example demonstrating how to use LightRAG with PostgreSQL-backed storage and Google Gemini models.
The example follows the existing Gemini demo structure and shows a persistent, production-style setup.

Related Issues

N/A

Changes Made

  • Added examples/lightrag_postgres_demo.py

  • Demonstrates Gemini (gemini-2.0-flash, text-embedding-004) with PostgreSQL storages:

    • PGVectorStorage
    • PGGraphStorage
    • PGKVStorage
    • PGDocStatusStorage
  • Uses async insert and query APIs

  • Environment-variable–based configuration

Checklist

  • Changes tested locally
  • No hardcoded credentials
  • Documentation update (not required)
  • Unit tests (example-only change)

Additional Notes

This is an example-only addition and does not introduce any breaking changes.

This script demonstrates the integration of LightRAG with PostgreSQL and Google Gemini for document indexing and querying.
@danielaskdd danielaskdd merged commit 838fff6 into HKUDS:main Dec 30, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants