Optimizing query prompt

This commit is contained in:
yangdx
2025-05-08 12:53:28 +08:00
parent 2bafc87a80
commit b92f9b9453
2 changed files with 7 additions and 7 deletions

View File

@@ -1302,19 +1302,19 @@ async def _build_query_context(
relations_str = json.dumps(relations_context, ensure_ascii=False)
text_units_str = json.dumps(text_units_context, ensure_ascii=False)
result = f"""-----Entities-----
result = f"""-----Entities(KG)-----
```json
{entities_str}
```
-----Relationships-----
-----Relationships(KG)-----
```json
{relations_str}
```
-----Sources-----
-----Document Chunks(DC)-----
```json
{text_units_str}