alen.ro/notes

How does “B2B Marketing Search” work?


B2B Search is a tiny search engine focused on B2B marketing.

It indexes blogs, newsletters, and social posts from growth and marketing operators in B2B. Because of the niche targeting, queries like “What is an SQL?” will direct you to Sales Qualified Leads instead of of database-related pages.

I’ve used Google’s Programmable Search Engine, which lets me define a set of websites where the search should be performed. For Linkedin posts I’m indexing pages that have this common pattern linkedin.com/posts/profile_name*

After you ask it a question (or enter a search query) it retrieves the top most important pages by first asking GPT-4 what would be the ideal search keyword for your question, processes the results using Firefox “Reader mode” to extract the text, and then asks ChatGPT to summarize them.

The ChatGPT prompt looks something like this:

Based on the following sources what is the correct answer to "How..."

1. ...
2. ...
3. ...

The code for querying ChatGPT and processing the results is based on Mckay Wrigley’s open-source clone of Perplexity AI.

These are the sources: