gist_correlation_matrix

Derive a sorted correlation matrix from embeddings and render an interactive heatmap for exploring pairwise relationships.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/thistleknot/skills --skill gist-correlation-matrix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gist_correlation_matrix
Source: https://github.com/thistleknot/skills/tree/main/gist_correlation_matrix
Command: npx skills add https://github.com/thistleknot/skills --skill gist-correlation-matrix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It turns an embedding space into a complete, human-explorable relational map so you can understand structure without being limited to top-K retrieval rankings.

Core Features & Use Cases

  • Correlation Matrix as the Artifact: Converts an (N, D) embedding set into an (N, N) correlation matrix that encodes every pairwise relationship.
  • Decorrelated Sorting for Legibility: Applies greedy decorrelation to produce a sorted matrix that reveals clusters, boundaries, and hierarchy patterns in a near-diagonal structure.
  • Interactive Similarity Landscape: Supports hover/drill-down style exploration where each cell can surface relationship strength and supporting metadata.

Quick Start

Use the gist_correlation_matrix skill to compute the sorted correlation matrix from your (N, D) embeddings and render an interactive heatmap for exploring all pairwise relationships.

Frequently Asked Questions about gist_correlation_matrix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize the complete relational structure of an embedding set beyond top-K similarity?

A sorted correlation matrix reveals the complete relational structure of an embedding set by encoding every pairwise relationship. It converts isolated top-K similarity scores into a full relational map, exposing clusters, boundaries, and hierarchy patterns for human exploration.

How do I sort a correlation matrix to make embedding clusters visually legible?

To make embedding clusters visually legible in a correlation matrix, apply greedy decorrelation sorting. This reorders the matrix into a near-diagonal structure, directly exposing cluster boundaries and hierarchy patterns within the interactive heatmap.

What is the best way to explore all pairwise relationships in a high-dimensional embedding space?

The best way to explore all pairwise relationships in an embedding space is rendering a sorted correlation matrix as an interactive heatmap. This supports hover and drill-down exploration to surface relationship strength and supporting metadata.

Can I use a correlation matrix as an output layer for graph-integrated search?

Yes, a correlation matrix serves effectively as an output layer for graph-integrated search. Computing corr_matrix via embeddings @ embeddings.T generates a navigable information artifact that reveals the complete relational structure of search results.

How do I compute a correlation matrix from an (N, D) matrix for similarity visualization?

Compute a correlation matrix from an (N, D) matrix by calculating embeddings @ embeddings.T. Then apply a greedy decorrelation or coverage-based ordering to render a sorted, interactive heatmap for similarity visualization.