agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Feature]: Enhance RAG with Document Summaries in System Prompt

Open kevinforge opened this issue 8 months ago • 0 comments

Feature Request

Add support for including individual document summaries in the system prompt when using multiple knowledge bases in RAG mode.

Current Behavior

When working with multiple documents in RAG, the system prompt doesn't include document-level summaries, which could improve retrieval accuracy and context
understanding.

Proposed Solution

Include a summary for each document in the system prompt when multiple knowledge bases are loaded. This would help the model better understand which document contains which information.

Benefits

  • Improved retrieval precision
  • Better context awareness
  • Enhanced response relevance
  • More efficient document utilization

kevinforge avatar Mar 13 '26 09:03 kevinforge