# `Reminisce.Similarity`
[🔗](https://github.com/NoeticEcho/reminisce-elixir/blob/v0.6.0/lib/reminisce/similarity.ex#L4)

A port to a similarity index, such as a vector store.

Recall asks it about its lexical candidates only, never the whole store, and
a recall never fails because the index did: an error is reported as
`similarity: {:unavailable, reason}` beside the lexical answer.

It has no default implementation, and this release ships none. Pass keys to it, never
words that are not already in your index: the library writes text nowhere but
its store.

# `scores`

```elixir
@callback scores(Reminisce.owner(), query :: String.t(), keys :: [String.t()]) ::
  {:ok, %{required(String.t()) =&gt; float()}} | {:error, term()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
