mix arcana.graph.embed_entities (Arcana v2.0.1)

Copy Markdown View Source

Generates embeddings for entity descriptions.

Entity embeddings enable GraphRAG-style entity similarity search, where queries are matched against entity concepts instead of relying on NER name extraction.

This is automatically done during mix arcana.graph.rebuild, but can also be run separately to backfill embeddings for existing entities.

$ mix arcana.graph.embed_entities

Options

  • --collection - Only embed entities in the specified collection
  • --batch-size N - Entities per batch (default: 100)
  • --force - Re-embed all entities, even those with existing embeddings
  • --quiet - Suppress progress output

Examples

mix arcana.graph.embed_entities --collection doctor-who
mix arcana.graph.embed_entities --force --batch-size 200