Skip to main content
Elixir SDK / Types Reference for the structs passed to and returned from Moss.Client and Moss.Session. Each is a plain Elixir struct.

DocumentInfo

A document stored in or returned from an index.

SearchResult

Returned by query/4 and query/3.

QueryResultDoc

A single match within a SearchResult.

IndexInfo

Metadata about a cloud or local index, returned by get_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 by Moss.Session.push_index/1. Poll job_id with get_job_status/2 until status is "ready".

RefreshResult

Returned by refresh_index/2.

JobStatusResponse

Returned by get_job_status/2.