yao/openapi/kb
Max 71b78bc23b Implement knowledge base configuration retrieval and enhance collection/document handling
- Added GetConfig function to retrieve the knowledge base configuration, ensuring proper initialization checks.
- Refactored CreateCollection, AddFile, AddText, and AddURL functions to utilize the new GetConfig method for improved error handling and database record management.
- Introduced preparation functions (PrepareCreateCollection, PrepareAddFile, PrepareAddText, PrepareAddURL) to streamline request handling and database data preparation.
- Enhanced error responses and rollback mechanisms for document and collection operations, improving robustness and clarity in error handling.
2025-08-12 18:35:30 +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 knowledge base configuration retrieval and enhance collection/document handling 2025-08-12 18:35:30 +08:00
document.go Implement knowledge base configuration retrieval and enhance collection/document handling 2025-08-12 18:35:30 +08:00
kb.go Refactor document management handlers to improve request validation and async processing 2025-08-12 11:41:48 +08:00
provider.go Enhance knowledge base provider management with multi-language support 2025-08-09 16:57:23 +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 knowledge base configuration retrieval and enhance collection/document handling 2025-08-12 18:35:30 +08:00
vote.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00