HKUDS / LightRAG

"LightRAG: Simple and Fast Retrieval-Augmented Generation"
https://arxiv.org/abs/2410.05779
MIT License
9.28k stars 1.14k forks source link

Output format #210

Closed ASAD-BE18 closed 1 week ago

ASAD-BE18 commented 2 weeks ago

How can I structure the query output response to JSON?

Jaykumaran commented 2 weeks ago

Hello,

The LightRAG class already has a basic convert_response_to_json as a param, may be you can refactor according to your need by creating a fork. It implements as follows in .utils.py

image

Hope it helps.