Dimensionality reduction transforms high-dimensional embeddings into fewer dimensions so teams can visualize distribution and inspect structure indirectly. PCA and t-SNE can help, but may lose substantial information. section 6.1.4
Use it as an exploratory work item:
- Generate embeddings for unstructured items with a suitable foundational model. section 6.1.4
- Apply PCA or t-SNE to visualize the embedding distribution, then record what the projection reveals and what information it may discard. section 6.1.4
- For richer exploration, index embeddings with FAISS or Annoy and query nearest neighbors instead of relying only on a projection. section 6.1.4
Shakespeare play exploration
Split plays into sentences, embed them with all-MiniLM-L12-v2, index them with FAISS, and visualize nearest-neighbor links as a heatmap. The resulting relationships can suggest similarities or distances between plays, but still require interpretation. section 6.1.4
Figure 6.4 Heat map of nearest neighbor connections in Shakespeare’s plays using all-MiniLM-L12-v2
Use the heatmap to inspect nearest-neighbor connections among Shakespeare’s plays. section 6.1.4










