ExMemvid.Retriever (ex_memvid v0.1.1)

A stateful GenServer for retrieving and decoding data from video memory.

This module manages the retriever's state, including a cache for decoded frames, ensuring that the cache persists across multiple calls. You start the server with start_link/3 and interact with it via the returned pid.

Summary

Functions

Returns a specification to start this module under a supervisor.

Performs a semantic search using the running Retriever server.

Starts the Retriever GenServer.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

search(pid, query, top_k \\ 5)

@spec search(pid :: pid(), query :: String.t(), top_k :: integer()) ::
  {:ok, [String.t()]} | {:error, term()}

Performs a semantic search using the running Retriever server.

start_link(list)

@spec start_link(
  video_path: Path.t(),
  index_path: Path.t(),
  config: ExMemvid.Config.t()
) ::
  GenServer.on_start()

Starts the Retriever GenServer.