yao/openapi/kb
Max 1c4fd3d20c Implement file and segment management API endpoints with error handling
- Added AddFile, AddText, AddURL, and AddSegments functions to handle file and segment uploads, including JSON request parsing and validation.
- Integrated error handling for invalid requests and uninitialized Knowledge Base instances, ensuring robust API responses.
- Enhanced response structures for success and error cases, improving consistency across the API.
- Updated AutoDetectConverter function to use a single content type parameter instead of multiple content types.
2025-07-25 16:35:19 +08:00
..
backup.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00
collection.go Implement environment variable resolution in configuration parsing and enhance collection management API 2025-07-24 17:08:58 +08:00
document.go Implement file and segment management API endpoints with error handling 2025-07-25 16:35:19 +08:00
kb.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +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 file and segment management API endpoints with error handling 2025-07-25 16:35:19 +08:00
utils.go Implement file and segment management API endpoints with error handling 2025-07-25 16:35:19 +08:00
vote.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00