Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkit
/
RerankerParams
Interface RerankerParams<CustomOptions>
interface
RerankerParams
<
CustomOptions
extends
ZodTypeAny
=
ZodTypeAny
>
{
documents
:
{
content
:
(
|
{
media
?:
undefined
;
text
:
string
}
|
{
media
:
{
contentType
?:
string
;
url
:
string
}
;
text
?:
undefined
}
)
[]
;
metadata
?:
Record
<
string
,
any
>
;
}
[]
;
options
?:
TypeOf
<
CustomOptions
>
;
query
:
|
string
|
{
content
:
(
|
{
media
?:
undefined
;
text
:
string
}
|
{
media
:
{
contentType
?:
string
;
url
:
string
}
;
text
?:
undefined
}
)
[]
;
metadata
?:
Record
<
string
,
any
>
;
}
;
reranker
:
RerankerArgument
<
CustomOptions
>
;
}
Type Parameters
CustomOptions
extends
ZodTypeAny
=
ZodTypeAny
Index
Properties
documents
options?
query
reranker
Properties
documents
documents
:
{
content
:
(
|
{
media
?:
undefined
;
text
:
string
}
|
{
media
:
{
contentType
?:
string
;
url
:
string
}
;
text
?:
undefined
}
)
[]
;
metadata
?:
Record
<
string
,
any
>
;
}
[]
Optional
options
options
?:
TypeOf
<
CustomOptions
>
query
query
:
|
string
|
{
content
:
(
|
{
media
?:
undefined
;
text
:
string
}
|
{
media
:
{
contentType
?:
string
;
url
:
string
}
;
text
?:
undefined
}
)
[]
;
metadata
?:
Record
<
string
,
any
>
;
}
reranker
reranker
:
RerankerArgument
<
CustomOptions
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
documents
options
query
reranker
Genkit JS API reference
Loading...