Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkitx-chromadb
createChromaCollection
Function createChromaCollection
createChromaCollection
<
EmbedderCustomOptions
extends
ZodType
<
any
,
any
,
any
,
EmbedderCustomOptions
>
,
>
(
ai
:
Genkit
,
params
:
{
clientParams
?:
ChromaClientParams
;
embedder
?:
EmbedderArgument
<
EmbedderCustomOptions
>
;
embedderOptions
?:
TypeOf
<
EmbedderCustomOptions
>
;
metadata
?:
CollectionMetadata
;
name
:
string
;
}
,
)
:
Promise
<
Collection
>
Helper function for creating Chroma collections.
Type Parameters
EmbedderCustomOptions
extends
ZodType
<
any
,
any
,
any
,
EmbedderCustomOptions
>
Parameters
ai
:
Genkit
params
:
{
clientParams
?:
ChromaClientParams
;
embedder
?:
EmbedderArgument
<
EmbedderCustomOptions
>
;
embedderOptions
?:
TypeOf
<
EmbedderCustomOptions
>
;
metadata
?:
CollectionMetadata
;
name
:
string
;
}
Returns
Promise
<
Collection
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Helper function for creating Chroma collections.