Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Cluster Hacker News Comments by Embeddings Using OpenAI and Python
Run manually to embed Hacker News story comments with OpenAI, then group them with a Python clustering step to surface recurring feedback, opinions and pain points.
What it does
## Step 6. Apply Clustering Algorithm to Comments [Read more about using Python in n8n]({{ $env.WEBHOOK_URL }} We'll retrieve our vectors embeddings for the desired HN story comments and perform an advanced clustering algorithm on them. This powerful echnique allows us to quickly group similar embeddings into clusters which we can then use to discover popular feedback, opinions and pain-points! We're able to do this thanks to te Python Code Node.
The steps
- When clicking ‘Test workflow’
- Hacker News
- Split Out
- Get Comments
- Qdrant Vector Store
- Embeddings OpenAI
- Default Data Loader
- Recursive Character Text Splitter
- Set Variables
- Clear Existing Comments
- Get Payload of Points
- Clusters To List
- OpenAI Chat Model
- Only Clusters With 3+ points
23 steps in total.
Similar automations
RAG & Knowledge BasesCluster Hacker News Comments with OpenAI and Qdrant23 stepsReports, Analytics & DashboardsCluster Hacker News Comments with Qdrant and OpenAI54 stepsImage, Video & AudioTurn Hacker News Stories into Videos with OpenAI39 stepsAI Agents & AssistantsAsk an OpenAI Agent for Hacker News Top Posts8 steps