mix arcana.graph.install (Arcana v2.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.

Options

  • --repo - The repo to use (defaults to YourApp.Repo)

Configuration

After running the migration, enable GraphRAG in your config:

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

Or enable per-call:

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