graphMapText renders the graph map-of-content (counts + hubs) for @memory map.
()
| 217 | |
| 218 | // graphMapText renders the graph map-of-content (counts + hubs) for @memory map. |
| 219 | func (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 |