DocsRetriever#
- class scikitplot.mcp.DocsRetriever(*args, **kwargs)[source]#
Structural contract every retrieval backend must satisfy.
Implemented by the corpus+annoy adapter (
_corpus_annoy.py) and by test doubles. Keeping it atyping.Protocolmeans backends need not import this module or subclass anything.Methods
search(query, k)
Return up to
kRetrievedChunkforquery, best first.