Services.ConversationIndexer (fnord v0.8.83)

View Source

Background indexer for conversations.

This GenServer mirrors Services.BackgroundIndexer, but operates on conversations instead of file entries. It processes one conversation at a time, generating embeddings from the conversation messages JSON and writing them to the conversation index.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

state()

@type state() :: %{
  project: Store.Project.t() | nil,
  impl: module(),
  convo_queue: [Store.Project.Conversation.t()],
  task: pid() | nil,
  mon_ref: reference() | nil,
  seen: map()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

stop(pid)

@spec stop(pid() | any()) :: :ok