LightRAG icon indicating copy to clipboard operation
LightRAG copied to clipboard

[Question]: Poor Answering Performance

Open MSZ-MGS opened this issue 7 months ago • 4 comments

Do you need to ask a question?

  • [ ] I have searched the existing question and discussions and this question is not already answered.
  • [x] I believe this is a legitimate question, not just a bug or feature request.

Your Question

Hi there,

Thank you for the excellent work. I managed to setup Lightrag Server and it works fine. However I am facing an issue with the quality of the outcomes. e.g. I asked the question "List the GIAS principles, domains and standards" and used all available Query Mode, however, the best result was around 70%. The document is around 120 pages. But the answers are in two pages at max (page 3 and 4)

Any suggestions to improve the outcomes??

Additional Context

I am using LM Studio, text-embedding-bge-m3 (quantization 8). and the LLM I tried gemma-3-4b-it and qwen3-4b.

globalinternalauditstandards_2024.pdf

Image

MSZ-MGS avatar May 11 '25 11:05 MSZ-MGS

A 4B parameter LLM is insufficient for document indexing and querying tasks. It is recommended to use a model with at least 32B parameters and a 32K context window. Generally, larger models provide better performance.

danielaskdd avatar May 12 '25 02:05 danielaskdd

A 4B parameter LLM is insufficient for document indexing and querying tasks. It is recommended to use a model with at least 32B parameters and a 32K context window. Generally, larger models provide better performance.

That's far away from consumer grade PC.

What about the embbeding model text-embedding-bge-m3?

MSZ-MGS avatar May 12 '25 16:05 MSZ-MGS

bge-m3 is fine.

danielaskdd avatar May 12 '25 19:05 danielaskdd

The quality of the outcomes are improved after detecting below bug. I am not sure where is it coming from. Image The issue is taking place with all embedding modules including bge-m3.

I used Ollama for the embedding and I think the issue is resolved., maybe expert user may verify if this issue is limited to the LM Studio and the Ollama is free from this issue.

MSZ-MGS avatar May 13 '25 19:05 MSZ-MGS

Reranker support has been introduced in v1.4.2. With reranker enabled, the default query mode automatically switches from hybrid to mixed, significantly enhancing query performance.

danielaskdd avatar Jul 20 '25 09:07 danielaskdd