Documentation
¶
Overview ¶
Package retrieval implements RAG search logic for Creel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
Searcher performs ACL-filtered vector similarity search.
func NewSearcher ¶
func NewSearcher(chunkStore *store.ChunkStore, authorizer auth.Authorizer, backend vector.Backend) *Searcher
NewSearcher creates a new Searcher.
func (*Searcher) Search ¶
func (s *Searcher) Search(ctx context.Context, principal *auth.Principal, topicIDs []string, queryEmbedding []float64, topK int, metadataFilter map[string]any) ([]Result, error)
Search performs an ACL-filtered similarity search. If topicIDs is empty, it searches all topics accessible to the principal.
Click to show internal directories.
Click to hide internal directories.