From 846566f2d92ca40930a3bc16bd2c8542894b4311 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 30 Dec 2025 11:01:52 +0800 Subject: [PATCH] Rename postgres demo to gemini postgres demo and fix linting --- ...trag_postgres_demo.py => lightrag_gemini_postgres_demo.py} | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename examples/{lightrag_postgres_demo.py => lightrag_gemini_postgres_demo.py} (99%) diff --git a/examples/lightrag_postgres_demo.py b/examples/lightrag_gemini_postgres_demo.py similarity index 99% rename from examples/lightrag_postgres_demo.py rename to examples/lightrag_gemini_postgres_demo.py index 9df9f3e0..aa4662df 100644 --- a/examples/lightrag_postgres_demo.py +++ b/examples/lightrag_gemini_postgres_demo.py @@ -107,16 +107,13 @@ async def initialize_rag() -> LightRAG: llm_model_name="gemini-2.0-flash", llm_model_func=llm_model_func, embedding_func=embedding_func, - # Performance tuning embedding_func_max_async=4, embedding_batch_num=8, llm_model_max_async=2, - # Chunking chunk_token_size=1200, chunk_overlap_token_size=100, - # PostgreSQL-backed storages graph_storage="PGGraphStorage", vector_storage="PGVectorStorage", @@ -169,6 +166,7 @@ async def main(): except Exception as e: print("An error occurred:", e) import traceback + traceback.print_exc() finally: