MCPcopy Create free account
hub / github.com/diillson/chatcli / graphMapText

Method graphMapText

cli/knowledge_graph.go:219–225  ·  view source on GitHub ↗

graphMapText renders the graph map-of-content (counts + hubs) for @memory map.

()

Source from the content-addressed store, hash-verified

217
218// graphMapText renders the graph map-of-content (counts + hubs) for @memory map.
219func (cli *ChatCLI) graphMapText() (string, error) {
220 card := cli.buildKnowledgeGraph().IndexCard(graphIndexMaxHubs)
221 if card == "" {
222 return "The knowledge graph is empty so far.", nil
223 }
224 return card, nil
225}
226
227// graphNeighborsText renders the local graph (backlinks + related notes) of the
228// node best matching idOrQuery, for @memory neighbors. Free text resolves to the

Callers 2

GraphMapMethod · 0.80
TestBuildKnowledgeGraphFunction · 0.80

Calls 2

buildKnowledgeGraphMethod · 0.95
IndexCardMethod · 0.80

Tested by 1

TestBuildKnowledgeGraphFunction · 0.64