Moss.Client and Moss.Session. Each
is a plain Elixir struct.
DocumentInfo
A document stored in or returned from an index.SearchResult
Returned byquery/4,
query_multi_index/4, and
query/3.
QueryResultDoc
A single match within aSearchResult.
LoadIndexesResult
Returned byload_indexes/3.
IndexInfo
Metadata about a cloud or local index, returned byget_index/2,
list_indexes/1,
load_index/3, and
get_index_info/2.
ModelRef
A reference to an embedding model.MutationResult
Returned by cloud mutations:create_index/4,
add_docs/4, and
delete_docs/3.
PushIndexResult
Returned byMoss.Session.push_index/1. Poll job_id
with get_job_status/2 until
status is "ready".
RefreshResult
Returned byrefresh_index/2.
JobStatusResponse
Returned byget_job_status/2.
Error
Thereason in every {:error, reason} the SDK returns, except GenServer’s
{:already_started, pid} from Moss.Client.session/3
with a :server_name already in use. Moss.Error is an exception, so
raise reason works, and it implements String.Chars, so "#{reason}" renders the message.
(Elixir moss 1.5.0+)