yao/openapi/kb
Max 7b2534bf37 Refactor file, text, and URL addition handlers for improved request processing and validation
- Introduced separate processing functions (AddFileProcess, ProcessAddTextRequest) to encapsulate business logic for file and text additions, making them Gin-agnostic.
- Updated AddFile, AddText, and AddURL functions to handle request parsing and validation more effectively.
- Enhanced error handling and rollback mechanisms during document creation and upsert operations.
- Implemented async processing capabilities for AddFileAsync, AddTextAsync, and AddURLAsync functions using pre-parsed request data.
- Streamlined utility functions for preparing requests and validating input, improving code maintainability and readability.
2025-08-14 08:52:43 +08:00
..
addfile.go Refactor file, text, and URL addition handlers for improved request processing and validation 2025-08-14 08:52:43 +08:00
addtext.go Refactor file, text, and URL addition handlers for improved request processing and validation 2025-08-14 08:52:43 +08:00
addurl.go Refactor file, text, and URL addition handlers for improved request processing and validation 2025-08-14 08:52:43 +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 Refactor file, text, and URL addition handlers for improved request processing and validation 2025-08-14 08:52:43 +08:00
kb.go Refactor extractor to extraction provider and update related configurations 2025-08-13 16:32:30 +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
types.go Implement document management handlers for listing, retrieving, and removing documents 2025-08-14 07:44:07 +08:00
utils.go Refactor file, text, and URL addition handlers for improved request processing and validation 2025-08-14 08:52:43 +08:00
vote.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00