LlmCore.Memory (llm_core v0.9.7)

Copy Markdown View Source

Backend-neutral semantic memory API.

Summary

Functions

available?()

@spec available?() :: boolean()

backend()

@spec backend() :: module()

recall(query, opts \\ [])

@spec recall(String.t(), keyword()) :: {:ok, [map()]} | {:error, term()}

reflect(query, opts \\ [])

@spec reflect(String.t() | atom(), keyword()) :: {:ok, term()} | {:error, term()}

retain(content, metadata \\ %{}, opts \\ [])

@spec retain(String.t(), map(), keyword()) :: :ok

retain_sync(content, metadata \\ %{}, opts \\ [])

@spec retain_sync(String.t(), map(), keyword()) :: {:ok, map()} | {:error, term()}