yao/openapi/kb
Max 5f217bcd33 Implement segment retrieval enhancements in API
- Added error handling for segment not found and access denied scenarios in GetSegmentParents function.
- Implemented response formatting based on query parameters, including metadata options.
- Introduced formatSegmentTreeResponse function to structure segment data for API responses.
- Improved validation to ensure segments belong to the specified document, enhancing security and clarity in responses.
2025-08-24 10:26:06 +08:00
..
addfile.go Enhance document management by adding file ID support and updating related fields 2025-08-15 10:47:06 +08:00
addtext.go Refactor file, text, and URL addition processes to improve request handling and validation 2025-08-14 14:51:48 +08:00
addurl.go Refactor file, text, and URL addition processes to improve request handling and validation 2025-08-14 14:51:48 +08:00
backup.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00
collection.go Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00
document.go Enhance document management by adding file ID support and updating related fields 2025-08-15 10:47:06 +08:00
graph.go Refactor document ID handling in API responses 2025-08-21 11:10:13 +08:00
hit.go Enhance hit and vote retrieval logic in API 2025-08-22 11:25:46 +08:00
kb.go Implement hit and vote management enhancements in API 2025-08-22 11:18:04 +08:00
provider.go Enhance knowledge base provider management with multi-language support 2025-08-09 16:57:23 +08:00
score.go Implement hit and vote management enhancements in API 2025-08-22 11:18:04 +08:00
search.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00
segment.go Implement segment retrieval enhancements in API 2025-08-24 10:26:06 +08:00
types.go Implement hit and vote management enhancements in API 2025-08-22 11:18:04 +08:00
utils.go Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00
vote.go Enhance hit and vote retrieval logic in API 2025-08-22 11:25:46 +08:00
weight.go Implement hit and vote management enhancements in API 2025-08-22 11:18:04 +08:00