LightRAG/lightrag/api/routers
anouarbm c9e1c6c1c2 fix(api): change content field to list in query responses
BREAKING CHANGE: content field is now List[str] instead of str

- Add ReferenceItem Pydantic model for type safety
- Update /query and /query/stream to return content as list
- Update OpenAPI schema and examples
- Add migration guide to API README
- Fix RAGAS evaluation to handle list format

Addresses PR #2297 feedback. Tested with RAGAS: 97.37% score.
2025-11-03 04:57:08 +01:00
..
__init__.py split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
document_routes.py Add PDF decryption support for password-protected files 2025-11-01 15:01:17 +08:00
graph_routes.py feat: Improve entity merge and edit UX 2025-10-27 23:42:08 +08:00
ollama_api.py fix(OllamaAPI): Add validation to ensure last message is from user role 2025-10-01 20:48:37 +08:00
query_routes.py fix(api): change content field to list in query responses 2025-11-03 04:57:08 +01:00