yao/openapi/kb
Max 3bef5a6222 Refactor file, text, and URL addition processes to improve request handling and validation
- Updated AddFileProcess, AddTextProcess, and AddURLProcess functions to accept an optional job ID for async operations.
- Enhanced error handling by requiring document IDs to be provided by the caller before processing.
- Streamlined document creation and upsert operations, ensuring better validation and rollback mechanisms.
- Implemented async processing capabilities in AddFileAsync, AddTextAsync, and AddURLAsync functions, returning job IDs and document IDs in responses.
- Improved code maintainability and readability by encapsulating business logic and reducing dependencies on Gin context.
2025-08-14 14:51:48 +08:00
..
addfile.go Refactor file, text, and URL addition processes to improve request handling and validation 2025-08-14 14:51:48 +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 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 processes to improve request handling and validation 2025-08-14 14:51:48 +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 Remove debug print statements from ToUpsertOptions method in BaseUpsertRequest to clean up code and improve readability. 2025-08-14 10:18:21 +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