ExChromaDb.Types (ex_chroma_db v0.1.0)
View SourceA module that provides some useful types for working with the Chroma DB API.
Summary
Types
@type collection_id() :: String.t()
@type collection_meta_info() :: %{ tenant_name: String.t(), database_name: String.t(), collection_id: collection_id() }
@type document() :: String.t()
@type document_embedding() :: [number()]
@type document_metadata() :: map()
@type embedding_vector() :: [float()]
@type id() :: String.t()
@type list_result(t) :: {:ok, [t]} | {:error, any()}
@type one_result(t) :: {:ok, t} | {:error, any()}
@type pagination() :: %{limit: non_neg_integer(), offset: non_neg_integer()}
@type record_id() :: String.t()
@type records() :: %{ ids: [record_id()], embeddings: [document_embedding()], metadatas: [document_metadata()], documents: [document()], uris: [uri()] }
@type uri() :: String.t()