Crate chroma_types

Crate chroma_types 

Source

Re-exports§

pub use operators::*;

Modules§

chroma_proto
error
operator
operators
Well-known operator IDs and names that are pre-populated in the database.
operators_generated
optional_u128
plan
regex

Structs§

AddCollectionRecordsPayload
AddCollectionRecordsRequest
AddCollectionRecordsResponse
AdvanceAttachedFunctionResponse
AttachFunctionRequest
AttachFunctionResponse
AttachedFunction
AttachedFunctionApiResponse
API response struct for attached function with function_name instead of function_id
AttachedFunctionInfo
AttachedFunctionUpdateInfo
AttachedFunctionUuid
AttachedFunctionUuid is a wrapper around Uuid to provide a type for attached function identifiers.
BoolInvertedIndexConfig
BoolInvertedIndexType
BoolValueType
Boolean value type index configurations
ChecklistResponse
ChromaResourceName
Chunk
Collection
CollectionAndSegments
CollectionConfiguration
CollectionFlushInfo
CollectionUuid
CollectionUuid is a wrapper around Uuid to provide a type for the collection id.
CompositeExpression
CountCollectionsRequest
CountRequest
CreateCollectionPayload
CreateCollectionRequest
CreateDatabaseRequest
CreateDatabaseResponse
CreateTenantRequest
CreateTenantResponse
DataChunkIteraror
DataRecord
Database
DatabaseUuid
DatabaseUuid is a wrapper around Uuid to provide a type for the database id.
DeleteCollectionRecordsPayload
DeleteCollectionRecordsRequest
DeleteCollectionRecordsResponse
DeleteCollectionRequest
DeleteCollectionResponse
DeleteDatabaseRequest
DeleteDatabaseResponse
DetachFunctionRequest
DetachFunctionResponse
DocumentExpression
EmbeddingFunctionNewConfiguration
FloatInvertedIndexConfig
FloatInvertedIndexType
FloatListValueType
Float list value type index configurations (for vectors)
FloatValueType
Float value type index configurations
FlushCompactionAndAttachedFunctionResponse
FlushCompactionResponse
ForkCollectionRequest
ForkLogsResponse
FtsIndexConfig
FtsIndexType
GetAttachedFunctionResponse
GetCollectionByCrnRequest
GetCollectionRequest
GetDatabaseRequest
GetRequest
GetRequestPayload
GetResponse
GetTenantRequest
GetTenantResponse
GetVectorsResult
HealthCheckResponse
HnswConfiguration
HnswIndexConfig
Configuration for HNSW vector index algorithm parameters
IncludeList
IncludeParsingError
IntInvertedIndexConfig
IntInvertedIndexType
IntValueType
Integer value type index configurations
InternalCollectionConfiguration
InternalHnswConfiguration
InternalSpannConfiguration
InternalUpdateCollectionConfiguration
JobId
JobId is a wrapper around Uuid to provide a unified type for job identifiers. Jobs can be either collection compaction jobs or task execution jobs.
ListCollectionsRequest
ListDatabasesRequest
LogRecord
MetadataDelta
MetadataEmbeddingRecord
MetadataExpression
OperationRecord
QueryRequest
QueryRequestPayload
QueryResponse
RawWhereFields
ResetResponse
Schema
Schema representation for collection index configurations
SearchRequest
SearchRequestPayload
SearchResponse
Segment
SegmentFlushInfo
SegmentUuid
SegmentUuid is a wrapper around Uuid to provide a type for the segment id.
SpannConfiguration
SpannIndexConfig
Configuration for SPANN vector index algorithm parameters
SpannPostingList
SparseVector
Represents a sparse vector using parallel arrays for indices and values.
SparseVectorIndexConfig
SparseVectorIndexType
SparseVectorLengthMismatch
Length mismatch between indices, values, and tokens in a sparse vector.
SparseVectorValueType
Sparse vector value type index configurations
StringInvertedIndexConfig
StringInvertedIndexType
StringValueType
String value type index configurations
Tenant
UpdateCollectionConfiguration
UpdateCollectionPayload
UpdateCollectionRecordsPayload
UpdateCollectionRecordsRequest
UpdateCollectionRecordsResponse
UpdateCollectionRequest
UpdateCollectionResponse
UpdateHnswConfiguration
UpdateSpannConfiguration
UpdateTenantRequest
UpdateTenantResponse
UpsertCollectionRecordsPayload
UpsertCollectionRecordsRequest
UpsertCollectionRecordsResponse
ValueTypes
Strongly-typed value type configurations Contains optional configurations for each supported value type
VectorEmbeddingRecord
VectorIndexConfig
VectorIndexType
VectorQueryResult

Enums§

AddCollectionRecordsError
AdvanceAttachedFunctionError
AttachFunctionError
AttachedFunctionConversionError
Base64DecodeError
BatchGetCollectionSoftDeleteStatusError
BatchGetCollectionVersionFilePathsError
BooleanOperator
Cmek
Customer-managed encryption key for storage encryption.
CollectionConfigurationToInternalConfigurationError
CollectionConversionError
CollectionFlushInfoConversionError
CollectionMetadataUpdate
CollectionToProtoError
ConversionError
CountCollectionsError
CountForksError
CreateCollectionError
CreateDatabaseError
CreateTenantError
DeleteCollectionError
DeleteCollectionRecordsError
DeleteDatabaseError
DetachFunctionError
DirtyMarker
Markers for tracking collection compaction state changes.
DistributedSpannParametersFromSegmentError
DocumentOperator
EmbeddingFunctionConfiguration
EmbeddingsPayload
ExecutorError
FilterValidationError
FinishAttachedFunctionError
FinishCreateAttachedFunctionError
FinishDatabaseDeletionError
FlushCompactionResponseConversionError
ForkCollectionError
GetAttachedFunctionError
GetCollectionByCrnError
GetCollectionError
GetCollectionSizeError
GetCollectionWithSegmentsError
GetCollectionsError
GetDatabaseError
GetMinCompletionOffsetError
GetSegmentsError
GetTenantError
HeartbeatError
HnswParametersFromSegmentError
Include
IndexConfig
Union type for all index configurations (used by builder pattern)
KnnIndex
ListAttachedFunctionsError
ListCollectionVersionsError
ListDatabasesError
MaterializedLogOperation
MetadataComparison
MetadataSetValue
MetadataValue
MetadataValueConversionError
MetadataValueType
Operation
OperationConversionError
PrimitiveOperator
QueryError
RecordConversionError
ResetError
ScalarEncoding
ScalarEncodingConversionError
SchemaBuilderError
SchemaError
SegmentConversionError
SegmentFlushInfoConversionError
SegmentScope
SegmentScopeConversionError
SegmentType
SetOperator
SignedRoaringBitmap
This enum helps to delay the evaluation of set minus in metadata filtering:
Space
UpdateCollectionConfigurationToInternalConfigurationError
UpdateCollectionConfigurationToInternalUpdateConfigurationError
UpdateCollectionError
UpdateCollectionRecordsError
UpdateEmbeddingsPayload
UpdateMetadataValue
UpdateMetadataValueConversionError
UpdateTenantError
UpdateVectorIndexConfiguration
UpsertCollectionRecordsError
VectorConversionError
VectorIndexConfiguration
Where
This Where enum serves as an unified representation for the where and where_document clauses. Although this is not unified in the API level due to legacy design choices, in the future we will be unifying them together, and the structure of the unified AST should be identical to the one here. Currently both where and where_document clauses will be translated into Where, and if both are present we simply create a conjunction of both clauses as the actual filter. This is consistent with the semantics we used to have when the where and where_document clauses are treated seperately.
WhereConversionError
WhereError
WhereValidationError
WrappedSerdeJsonError

Constants§

BOOL_INVERTED_INDEX_NAME
BOOL_METADATA
BOOL_VALUE_NAME
CHROMA_DOCUMENT_KEY
CHROMA_KEY
CHROMA_URI_KEY
DOCUMENT_KEY
EMBEDDING_KEY
F32_METADATA
FLOAT_INVERTED_INDEX_NAME
FLOAT_LIST_VALUE_NAME
FLOAT_VALUE_NAME
FTS_INDEX_NAME
FULL_TEXT_PLS
HNSW_PATH
INT_INVERTED_INDEX_NAME
INT_VALUE_NAME
MAX_HEAD_ID_BF_PATH
MAX_OFFSET_ID
OFFSET_ID_TO_DATA
OFFSET_ID_TO_USER_ID
POSTING_LIST_PATH
SPARSE_MAX
SPARSE_OFFSET_VALUE
SPARSE_VECTOR_INDEX_NAME
SPARSE_VECTOR_VALUE_NAME
STRING_INVERTED_INDEX_NAME
STRING_METADATA
STRING_VALUE_NAME
U32_METADATA
USER_ID_TO_OFFSET_ID
VECTOR_INDEX_NAME
VERSION_MAP_PATH

Functions§

are_metadatas_close_to_equal
are_update_metadatas_close_to_equal
Check if two metadata are close to equal. Ignores small differences in float values.
decode_base64_embedding
decode_base64_embeddings
decode_base64_update_embeddings
decode_embeddings
default_batch_size
default_construction_ef
default_construction_ef_spann
default_default_knn_index
default_initial_lambda
default_m
default_m_spann
default_merge_threshold
default_nreplica_count
default_num_centers_to_merge_to
default_num_samples_kmeans
default_num_threads
default_reassign_neighbor_count
default_resize_factor
default_search_ef
default_search_ef_spann
default_search_nprobe
default_search_rng_epsilon
default_search_rng_factor
default_space
default_split_threshold
default_sync_threshold
default_write_nprobe
default_write_rng_epsilon
default_write_rng_factor
dirty_log_path_from_hostname
get_metadata_value_as
is_embedding_function_default
is_hnsw_config_default
Check if HNSW config is default
is_space_default
Check if space is default (None means default, or if present, should be default space)
logical_size_of_metadata
maybe_decode_update_embeddings
parse_where
parse_where_document
test_segment

Type Aliases§

CountCollectionsResponse
CountResponse
CreateCollectionResponse
DeletedMetadata
ForkCollectionResponse
GetCollectionByCrnResponse
GetCollectionResponse
GetDatabaseResponse
ListCollectionsResponse
ListDatabasesResponse
Metadata
UpdateMetadata