ChromaLibArgs: {
collectionMetadata?: CollectionMetadata;
collectionName?: string;
filter?: object;
numDimensions?: number;
url?: string;
} | {
collectionMetadata?: CollectionMetadata;
collectionName?: string;
filter?: object;
index?: ChromaClientT;
numDimensions?: number;
}
Defines the arguments that can be passed to the
Chroma
class constructor. It can either contain aurl
for the Chroma database, the number of dimensions for the vectors (numDimensions
), acollectionName
for the collection to be used in the database, and afilter
object; or it can contain anindex
which is an instance ofChromaClientT
, along with thenumDimensions
,collectionName
, andfilter
.