yao/kb/types
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
..
collection.go Implement knowledge base configuration retrieval and enhance collection/document handling 2025-08-12 18:35:30 +08:00
config.go Add default collection and document model settings in Config struct 2025-08-12 17:31:38 +08:00
config_test.go Update test for Config struct to clarify feature computation timing 2025-08-09 17:28:57 +08:00
document.go Implement knowledge base configuration retrieval and enhance collection/document handling 2025-08-12 18:35:30 +08:00
provider.go Enhance knowledge base provider management with multi-language support 2025-08-09 16:57:23 +08:00
types.go Add default collection and document model settings in Config struct 2025-08-12 17:31:38 +08:00