mix arcana.graph.install (Arcana v3.0.1)

Copy Markdown View Source

Generates the migration for GraphRAG tables.

$ mix arcana.graph.install

This will create a migration for:

  • arcana_graph_entities - Named entities extracted from documents
  • arcana_graph_entity_mentions - Links entities to chunks where they appear
  • arcana_graph_relationships - Edges between entities
  • arcana_graph_communities - Community clusters with summaries

GraphRAG is optional. Only run this if you want to use knowledge graph features for enhanced retrieval.

Entity embedding dimensions are detected from the configured embedder (via Arcana.Embedder.dimensions/1), so the generated table matches your vectors. Use --dimensions to override.

Options

  • --repo - The repo to use (defaults to YourApp.Repo)
  • --dimensions - Override auto-detected embedding dimensions

Configuration

After running the migration, enable GraphRAG in your config:

config :arcana,
  graph: [
    enabled: true,
    community_levels: 1,
    resolution: 1.0
  ]

Or enable per-call:

Arcana.ingest(text, repo: MyApp.Repo, graph: true)