- Introduced a Validator interface and a validateRequest function to streamline request validation across handlers. - Added checkKBInstance function to ensure the knowledge base instance is initialized before processing requests. - Implemented handleAsync function to manage asynchronous processing for file and text addition. - Updated AddFile and AddText functions to utilize the new validation and async handling logic. - Added async variants for AddFile and AddText to support non-blocking operations. - Enhanced AddURL and its async variant with similar validation and processing improvements. |
||
|---|---|---|
| .. | ||
| backup.go | ||
| collection.go | ||
| document.go | ||
| kb.go | ||
| provider.go | ||
| search.go | ||
| segment.go | ||
| utils.go | ||
| vote.go | ||