Extracts entities and relationships from text chunks using LLM structured output. Deduplicates and persists results with mention counting.
Summary
Functions
Extract entities and relations from a chunk's content using the configured provider.
Persist extracted entities into the database, deduplicating by name+type
within the same collection. Returns {:ok, [entity]}.
Persist extracted relations. Requires a map of entity_name -> entity_id.
Functions
Extract entities and relations from a chunk's content using the configured provider.
Persist extracted entities into the database, deduplicating by name+type
within the same collection. Returns {:ok, [entity]}.
Persist extracted relations. Requires a map of entity_name -> entity_id.