-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
Do you need to ask a question?
- I have searched the existing question and discussions and this question is not already answered.
- I believe this is a legitimate question, not just a bug or feature request.
Your Question
I have been playing around with the Graph storage and have used Azure Postgres - Flex server with AGE and VECTOR extension to address all the storage needs of Lightrag. I have also created the indices as documented in Lightrag documentation but the performance is extremely slow in the retrieval process. Even for top k of 10, with a graph of 3500 nodes and 4500 edges, it is taking 3-5 minutes for the response. The knowledge graph process is not an issue.
With support for Mongo dropping as a solution for all storages, there is a need to improve the postgres graph performance to increase the adoption of the lightrag as a solution.
Additional Context
Here is the postgres query as the longest running query by Azure monitoring:
SELECT query_sql_text FROM query_store.query_texts_view WHERE query_text_id=4153752584585438422;
query_sql_text
SELECT * FROM cypher('chunk_entity_relation', $$ +
MATCH (n:base) +
OPTIONAL MATCH (n)-[r]->(target:base) +
RETURN collect(distinct n) AS n, collect(distinct r) AS r+
LIMIT 1000 +
$$) AS (n agtype, r agtype)