Retriever<Options extends RetrieverOptions> class abstract

Base Index class. All indexes should extend this class.

Inheritance
Implementers

Constructors

Retriever({required Options defaultOptions})
Base Index class. All indexes should extend this class.
const

Properties

defaultOptions → Options
The default options to use when invoking the Runnable.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batch(List<String> inputs, {List<Options>? options}) Future<List<List<Document>>>
Batches the invocation of the Runnable on the given inputs.
inherited
bind(Options options) RunnableBinding<String, Options, List<Document>>
Binds the Runnable to the given options.
inherited
close() → void
Cleans up any resources associated with it the Runnable.
inherited
getCompatibleOptions(RunnableOptions? options) → Options?
Returns the given options if they are compatible with the Runnable, otherwise returns null.
inherited
getRelevantDocuments(String query, {Options? options}) Future<List<Document>>
Get the most relevant documents for a given query.
invoke(String input, {Options? options}) Future<List<Document>>
Get the most relevant documents for a given query.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pipe<NewRunOutput extends Object?, NewCallOptions extends RunnableOptions>(Runnable<List<Document>, NewCallOptions, NewRunOutput> next) RunnableSequence<String, NewRunOutput>
Pipes the output of this Runnable into another Runnable using a RunnableSequence.
inherited
stream(String input, {Options? options}) Stream<List<Document>>
Streams the output of invoking the Runnable on the given input.
inherited
streamFromInputStream(Stream<String> inputStream, {Options? options}) Stream<List<Document>>
Streams the most relevant documents for the query resulting from reducing the input stream.
override
toString() String
A string representation of this object.
inherited
withFallbacks(List<Runnable<String, RunnableOptions, List<Document>>> fallbacks) RunnableWithFallback<String, List<Document>>
Adds fallback runnables to be invoked if the primary runnable fails.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited