Skip to content

Comments

Update operate.py#1151

Closed
FeHuynhVI wants to merge 8 commits intoHKUDS:mainfrom
FeHuynhVI:FeHuynhVI-standarized-system-prompt-for-mix-mode
Closed

Update operate.py#1151
FeHuynhVI wants to merge 8 commits intoHKUDS:mainfrom
FeHuynhVI:FeHuynhVI-standarized-system-prompt-for-mix-mode

Conversation

@FeHuynhVI
Copy link
Contributor

Standardized Prompt for Mix Mode

Description
This pull request introduces a standardized prompt for the "Mix Mode" in the LightRAG system. The prompt integrates both Knowledge Graph (KG) and Document Chunks (DC) data sources to support hybrid retrieval and generation, enhancing the assistant's ability to provide accurate and contextually relevant responses.

Checklist

  • [x ] Changes tested locally
  • [x ] Code reviewed
  • Documentation updated (if necessary)
  • Unit tests added (if applicable)

Additional Notes

[Add any additional notes or context for the reviewer(s).]

Standardized Prompt for Mix Mode
@LarFii
Copy link
Collaborator

LarFii commented Mar 24, 2025

Thanks for sharing! The use of the or operator to assign sys_prompt assumes that both system_prompt and PROMPTS["mix_rag_response"] require the same format arguments. Otherwise the unconditional call to format will result in an error.

@FeHuynhVI FeHuynhVI closed this Mar 24, 2025
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