Arcana.Graph.EntityMatcher.NER (Arcana v2.0.1)

Copy Markdown View Source

Entity matcher that extracts entity names from the query and looks them up by exact name match in the graph.

Uses the configured Arcana.Graph.EntityExtractor (defaults to NER via Bumblebee) to identify named entities in the query, then performs a case sensitive name lookup in the entities table.

This matcher works best when queries name entities directly. It tends to outperform embedding similarity on queries with proper nouns. It cannot match entities the extractor doesn't identify in the query text.

Options

  • :repo - Ecto repo (required)
  • :entity_extractor - override the configured entity extractor