capreolus.searcher
¶
Submodules¶
Package Contents¶
Classes¶
Base class for Searcher modules. The purpose of a Searcher is to query a collection via an |
Functions¶
|
-
class
capreolus.searcher.
Searcher
(config=None, provide=None, share_dependency_objects=False, build=True)[source]¶ Bases:
capreolus.ModuleBase
Base class for Searcher modules. The purpose of a Searcher is to query a collection via an
Index
module.Similar to Rerankers, Searchers return a list of documents and their relevance scores for a given query. Searchers are unsupervised and efficient, whereas Rerankers are supervised and do not use an inverted index directly.
- Modules should provide:
a
query(string)
and aquery_from_file(path)
method that return document scores