yao/openapi/kb
Max 91d67d3b54 Enhance collection management and segment handling in the API
- Added GetCollection endpoint to retrieve collections by ID, including error handling for missing IDs and uninitialized knowledge base.
- Updated CreateCollectionConfig to use more descriptive field names for embedding provider and option IDs.
- Refactored UpdateSegments function to improve validation and error handling, ensuring document IDs and segment texts are properly checked.
- Introduced new request structures for updating votes, scores, and weights for segments, enhancing the API's capabilities.
- Removed the outdated vote handling file to streamline the codebase.
2025-08-20 18:25:28 +08:00
..
addfile.go Enhance document management by adding file ID support and updating related fields 2025-08-15 10:47:06 +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 Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00
document.go Enhance document management by adding file ID support and updating related fields 2025-08-15 10:47:06 +08:00
kb.go Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +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 Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00
store.go Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00
types.go Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00
utils.go Enhance collection management and segment handling in the API 2025-08-20 18:25:28 +08:00