MCPcopy Index your code
hub / github.com/apache/answer / SearchSimilar

Method SearchSimilar

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

SearchSimilar performs a semantic similarity search. The plugin is responsible for embedding the query text and searching its vector store. Returns up to topK results sorted by similarity score (descending).

(ctx context.Context, query string, topK int)

Source from the content-addressed store, hash-verified

100 // The plugin is responsible for embedding the query text and searching its vector store.
101 // Returns up to topK results sorted by similarity score (descending).
102 SearchSimilar(ctx context.Context, query string, topK int) ([]VectorSearchResult, error)
103
104 // UpdateContent upserts a single document in the vector store.
105 // Called by the core on incremental content changes.

Callers 2

SearchSimilarMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected