Files
ai-operator/internal/knowledge/repository.go
T

24 lines
396 B
Go

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)
}