Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkit
retriever
RetrieverFn
Type Alias RetrieverFn<RetrieverOptions>
RetrieverFn
:
(
query
:
Document
,
queryOpts
:
TypeOf
<
RetrieverOptions
>
,
)
=>
Promise
<
RetrieverResponse
>
Retriever implementation function signature.
Type Parameters
RetrieverOptions
extends
ZodTypeAny
Type declaration
(
query
:
Document
,
queryOpts
:
TypeOf
<
RetrieverOptions
>
,
)
:
Promise
<
RetrieverResponse
>
Parameters
query
:
Document
queryOpts
:
TypeOf
<
RetrieverOptions
>
Returns
Promise
<
RetrieverResponse
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Retriever implementation function signature.