Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2025-09-26 | 2.5 kB | |
v1.4.9rc4 source code.tar.gz | 2025-09-26 | 7.2 MB | |
v1.4.9rc4 source code.zip | 2025-09-26 | 7.4 MB | |
Totals: 3 Items | 14.7 MB | 0 |
Importance Notes
v1.4.9 introduces key enhancements focused on refining the reference output format and incorporating structured references into query results. All query API endpoints now include a references
field, enabling frontend applications to retrieve cited documents and their corresponding identifiers associated with LightRAG query results.
The context format sent to the LLM has been updated. The streaming response from the LLM now includes a references
field (ignored by the frontend by default). If your application relies on context data returned by the LightRAG query API, you may need to update your code accordingly.
By leveraging the user_prompt
parameter, users can instruct the LLM to generate responses with footnote annotations. The footnote numbers in the LLM output can be seamlessly mapped to the document IDs returned in the references
field. This integration enables tighter alignment between LightRAG and your business system, empowering users to access original source materials directly.
user_prompt
act as additional output instruction for LLM. Here provide two examples:
-
user_prompt
for gpt-4.1-miniFor inline citations, use the footnote marker syntax
[^1]
, where the^
preceding the identifier indicates a footnote reference. When multiple citations are required at a single location, each ID should be enclosed in separate footnote markers (e.g.,[^1][^2][^3]
). -
user_prompt
for Qwen3 or DeepSeek models:内嵌引文编号使用格式
[^1]
或[^2,3]
,多个编号之间用逗号隔开。需要按要求生成参考文献,但不需要生成脚注。
This screenshot illustrates the functionality of the user_prompt
parameter in the WebUI:
What's Changed
- Hot Fix: Resolved double query problem by add aquery_llm function for consistent response handling by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/2152
- Optimize Footnote Marker Display in WebUI by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/2151
- Web UI - center the loading icon and adjust GraphSeach width by @zl7261 in https://github.com/HKUDS/LightRAG/pull/2150
New Contributors
- @zl7261 made their first contribution in https://github.com/HKUDS/LightRAG/pull/2150
Full Changelog: https://github.com/HKUDS/LightRAG/compare/v1.4.9rc3...v1.4.9rc4