Genkit JS API reference
Preparing search index...
genkit
plugin
indexer
Function indexer
indexer
<
IndexerOptions
extends
z
.
ZodTypeAny
>
(
options
:
{
configSchema
?:
IndexerOptions
;
embedderInfo
?:
{
dimensions
?:
number
;
label
?:
string
;
supports
?:
{
input
?:
(
"video"
|
"image"
|
"text"
)
[]
;
multilingual
?:
boolean
;
}
;
}
;
name
:
string
;
}
,
runner
:
IndexerFn
<
IndexerOptions
>
,
)
:
IndexerAction
<
IndexerOptions
>
Creates an indexer action for the provided
IndexerFn
implementation.
Type Parameters
IndexerOptions
extends
z
.
ZodTypeAny
Parameters
options
:
{
configSchema
?:
IndexerOptions
;
embedderInfo
?:
{
dimensions
?:
number
;
label
?:
string
;
supports
?:
{
input
?:
(
"video"
|
"image"
|
"text"
)
[]
;
multilingual
?:
boolean
;
}
;
}
;
name
:
string
;
}
runner
:
IndexerFn
<
IndexerOptions
>
Returns
IndexerAction
<
IndexerOptions
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Creates an indexer action for the provided IndexerFn implementation.