Discover and explore top open-source AI tools and projects—updated daily.
Tool to visualize LLM chain-of-thought "thought process"
Top 74.4% on SourcePulse
This project visualizes the "thought process" of AI models by converting chains of thought into embeddings and plotting them using t-SNE. It is targeted at researchers and developers interested in understanding and analyzing AI reasoning patterns. The primary benefit is providing a visual representation of an AI's internal "thinking" steps, potentially revealing phases like searching, stable thinking, and concluding.
How It Works
The project captures AI "chains of thought" as text, then utilizes the OpenAI API to convert these text sequences into numerical embeddings. These embeddings are subsequently processed with t-SNE for dimensionality reduction, allowing for sequential plotting. Cosine similarity between consecutive embeddings is calculated and normalized to a 0-1 range to quantify the "distance" or change between thought steps, highlighting significant shifts in the AI's reasoning.
Quick Start & Requirements
pipenv install
.python run.py
.data/chains/
.pull_cot.js
) is available for downloading chat data from Deepseek's interface.Highlighted Details
Maintenance & Community
No specific information on maintainers, community channels, or roadmap is provided in the README.
Licensing & Compatibility
The README does not specify a license.
Limitations & Caveats
The project relies on the OpenAI API, incurring costs and requiring an API key. The visualization method (t-SNE) is sensitive to parameter choices and may not always perfectly represent high-dimensional relationships. Data extraction from Deepseek requires manual execution of a JavaScript snippet in the browser console.
7 months ago
Inactive