Companies Summary Generator
- Sifted
- 2022 – 2024
- role: junior backend developer
System for Sifted, a UK startup, that scrapes company websites and has an LLM write up each company's problem, solution and audience, then groups similar companies into market maps.
results
- One record per company: the problem, the solution, the target users and a one-line punchline, written by the model from several pages of its site
- Every step recorded per company: the URLs scraped, each version of a summary, the tokens, cost and seconds it took
- A Pinecone vector database behind search, clustering and market maps
- My first LLM project, started right as ChatGPT launched in 2022
architecture
Company websites are scraped, every step is recorded in PostgreSQL, summaries are written with LangChain and OpenAI, embedded into Pinecone, and clustered into market maps.
the story
My first LLM project, started at Sifted in 2022, right as ChatGPT came out. Sifted tracks European startups, and it wanted the same short profile for every company in its database without anyone writing them by hand.
For each company the system scrapes a handful of pages from its website (home, about, team, products), and a model reads them and writes four things: the problem the company works on, its solution, its target users, and a one-line punchline. The work ran in Python with LangChain and OpenAI, and every step was stored in PostgreSQL: which URLs were scraped, which version of each summary, and the tokens, cost and seconds each company took.
The summaries also went into a Pinecone vector database, behind search, clustering and market maps. A standalone version of the clustering step is public as company-clusters: it embeds the summaries with a sentence-transformers model (all-MiniLM-L6-v2), groups them with K-means, asks GPT-4o for a name, theme and shared traits for each cluster as JSON, and plots the result with t-SNE as a market map.
A framework that changed every week
Learning a framework that changed every week while the database kept growing. Company websites say little, and in very different ways, so the prompts had to keep the model to what the pages actually say, and a summary could go through more than one pass before it was kept. The work also crossed several teams at Sifted, who each needed something different from the same records.
built with
Python
Langchain
OpenAI
Pinecone
PostgreSQL
HuggingFace