Arcana.Graph.CommunitySummarizer.LLM (Arcana v1.3.3)
View SourceLLM-based community summarizer.
Uses a language model to generate natural language summaries of knowledge graph communities based on their entities and relationships.
Configuration
config :arcana, :graph,
community_summarizer: {Arcana.Graph.CommunitySummarizer.LLM, llm: &MyApp.llm/3}Options
:llm- Required. A function(prompt, context, opts) -> {:ok, response}
Summary
Functions
Builds the prompt for community summarization.