Packages

Idiomatic Elixir client for the mneme embedded vector database core

Current section

Files

Jump to
mnemedb_client lib mneme result.ex
Raw

lib/mneme/result.ex

defmodule Mneme.Result do
@moduledoc """
Search result item returned by vector queries.
Each result contains the matched row id and a similarity score where larger
values indicate stronger matches for the configured metric.
## Examples
iex> %Mneme.Result{id: "doc_1", score: 0.98}
%Mneme.Result{id: "doc_1", score: 0.98}
"""
@type t :: %__MODULE__{
id: String.t(),
score: float()
}
defstruct [:id, :score]
end