MCPcopy
hub / github.com/apache/answer / VectorSearchSyncer

Interface VectorSearchSyncer

plugin/vector_search.go:114–119  ·  view source on GitHub ↗

VectorSearchSyncer is implemented by the core and provided to plugins via RegisterSyncer. Plugins call these methods to pull all content for bulk indexing.

Source from the content-addressed store, hash-verified

112// VectorSearchSyncer is implemented by the core and provided to plugins via RegisterSyncer.
113// Plugins call these methods to pull all content for bulk indexing.
114type VectorSearchSyncer interface {
115 // GetQuestionsPage returns a page of questions with aggregated text (title + body + answers + comments).
116 GetQuestionsPage(ctx context.Context, page, pageSize int) ([]*VectorSearchContent, error)
117 // GetAnswersPage returns a page of answers with aggregated text (answer body + parent question title + comments).
118 GetAnswersPage(ctx context.Context, page, pageSize int) ([]*VectorSearchContent, error)
119}
120
121var (
122 // CallVectorSearch is a function that calls all registered VectorSearch plugins.

Callers

nothing calls this directly

Implementers 2

PluginSyncerinternal/repo/search_sync/search_sync.
PluginSyncerinternal/repo/vector_search_sync/synce

Calls

no outgoing calls

Tested by

no test coverage detected