sync: migrate ai-operator to Gitea (2026-08-10)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package knowledge
|
||||
|
||||
import "context"
|
||||
|
||||
type SearchRequest struct {
|
||||
Query string
|
||||
Language string
|
||||
RegionCode string
|
||||
Limit int
|
||||
}
|
||||
|
||||
type SearchResult struct {
|
||||
DocumentID string
|
||||
ChunkID string
|
||||
Title string
|
||||
Text string
|
||||
Score float64
|
||||
Metadata map[string]any
|
||||
}
|
||||
|
||||
type Repository interface {
|
||||
Search(ctx context.Context, req SearchRequest) ([]SearchResult, error)
|
||||
}
|
||||
Reference in New Issue
Block a user