Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / RAG & Knowledge Bases

RAG & Knowledge Bases

Cluster Hacker News Comments with OpenAI and Qdrant

When you run it, it collects Hacker News comments, embeds them in Qdrant, groups similar ones, and has OpenAI summarize each cluster into Google Sheets.

What it does

## Step 6. Apply Clustering Algorithm to Comments Read more about using Python in n8n 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

  1. When clicking ‘Test workflow’
  2. Hacker News
  3. Split Out
  4. Get Comments
  5. Qdrant Vector Store
  6. Embeddings OpenAI
  7. Default Data Loader
  8. Recursive Character Text Splitter
  9. Set Variables
  10. Clear Existing Comments
  11. Get Payload of Points
  12. Clusters To List
  13. OpenAI Chat Model
  14. Only Clusters With 3+ points

23 steps in total.

Similar automations