- Introduced the Knowledge Base (KB) API by creating a new kb package with various endpoints for collection and document management, segment management, and search functionalities. - Updated the OpenAPI router to attach the KB API, ensuring OAuth protection for all endpoints. - Implemented logging for configuration validation to enhance error handling and user feedback.
11 lines
215 B
Go
11 lines
215 B
Go
package kb
|
|
|
|
import "github.com/yaoapp/gou/graphrag/types"
|
|
|
|
// Instance is the GraphRag instance
|
|
var Instance types.GraphRag = nil
|
|
|
|
// Load loads the GraphRag instance
|
|
func Load(config *Config) error {
|
|
return nil
|
|
}
|