Arcana.Agent.Searcher.Arcana (Arcana v1.3.3)

View Source

Default searcher using Arcana's built-in pgvector search.

Uses Arcana.search/2 to perform semantic similarity search against the configured PostgreSQL database with pgvector.

Usage

# With Agent pipeline (this is the default)
ctx
|> Agent.search()
|> Agent.answer()

# Explicitly specifying the searcher
ctx
|> Agent.search(searcher: Arcana.Agent.Searcher.Arcana)
|> Agent.answer()

Options

  • :repo - The Ecto repo (required)
  • :collection - Collection name to search
  • :limit - Maximum chunks to return (default: 5)
  • :threshold - Minimum similarity threshold (default: 0.5)