Merge branch 'main' of github.com:HKUDS/LightRAG
This commit is contained in:
@@ -1195,18 +1195,16 @@ async def mix_kg_vector_query(
|
|||||||
|
|
||||||
# 5. Construct hybrid prompt
|
# 5. Construct hybrid prompt
|
||||||
sys_prompt = (
|
sys_prompt = (
|
||||||
system_prompt
|
system_prompt if system_prompt else PROMPTS["mix_rag_response"]
|
||||||
if system_prompt
|
).format(
|
||||||
else PROMPTS["mix_rag_response"].format(
|
kg_context=kg_context
|
||||||
kg_context=kg_context
|
if kg_context
|
||||||
if kg_context
|
else "No relevant knowledge graph information found",
|
||||||
else "No relevant knowledge graph information found",
|
vector_context=vector_context
|
||||||
vector_context=vector_context
|
if vector_context
|
||||||
if vector_context
|
else "No relevant text information found",
|
||||||
else "No relevant text information found",
|
response_type=query_param.response_type,
|
||||||
response_type=query_param.response_type,
|
history=history_context,
|
||||||
history=history_context,
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if query_param.only_need_prompt:
|
if query_param.only_need_prompt:
|
||||||
|
Reference in New Issue
Block a user