I started with a metasearch, since that's (mostly) all Kagi is. I send prepaid-API calls to Brave, Mojeek, Marginalia & Yep for every query, and get about 200 results back on every search. The cost is far less than I paid Kagi. My first version was a single PHP file written by Claude Sonnet 3.6 (!), any modern AI would one-shot something dramatically better. Obviously you can iterate & improve it over time yourself. Grouping the results by domain and ranking by how many search engines return the same page/domain will get you ~60% of the ranking quality.
Over the years I added more ranking signals and had Claude build a ranking optimizer. I provide "golden queries" ranked as I would prefer, and the optimizer runs experiments to optimize the weights for each ranking signal. It isn't perfect, especially since I only use on-page signals. But it has been good enough that I don't miss Google.
My own index is just a couple of SQLite databases. It is ridiculous how far you can get with SQLite, FTS Full Text Search & its built-in BM25. Each webpage takes up 10KB of index storage on average, once trimmed down to just the indexable text. I never clear my Firefox history, so I went through my history cache to find which sites I actually visit, then made a command line indexer to run on my laptop and index them in the mornings. Most sites offer a sitemap or RSS file, so you don't need to worry about crawling the site. My tiny index doesn't answer every query, and that's what the metasearch is for. But surprisingly often, that tiny subset of the internet does have the answer I need, and it saves me a paid search API fee every time it does.
My system is held together with duct-tape and hope, so for most people it's easier just to use Kagi (or Uruky.com). If you do want to build it out, the blog at marginalia.nu has far more useful technical details than anything I can offer. But if you do go down the rabbit hole, I think you'll start questioning how a giant enterprise like Google can manage to screw up search so much.
Do you worry that your methodologies will get you stuck in a local maxima (or minima?). By using combined output of metasearch and perhaps missing overlooked gems? (It's something I worry about in my own data, as those out of the norm things are sometimes very important to me in the past)
I treat my Firefox History the same way though the way I use it is a bit different right now. I would like to harness it like yours, but first I think I need to pipe it into ArchiveBox or something
Sorry I missed this before! I don't think it sticks me in a local maxima/minima, or at least here is my thinking. The MetaSearch is equivalent to searching all of those search engines, and getting the top 40 results from each of them, because that's the maximum most of them will provide (some more, some less). So I think I'm actually getting a broader range of results than if I was just searching on Google alone, or Brave alone, especially since I take all 200 results at once and don't bother with paginating to 10-links-per-page.
There's also less overlap between the search engines for a query than I expected, so when they do agree on a result, it's usually relevant. It's increasingly common (at least in my experience) for search engines to just say they don't have anything relevant for a search. For trying to find overlooked gems, that's something Marginalia specializes in with their index.
But you're right that the metasearch still only skims the top of each search engine. And search engines no longer let you keep searching endlessly. Google stops you shortly after page 20, so... Top 200 results? That's why you do need your own index if you can, it's the only way to surface things that might not have been in that Top 200 and actually control your access to information. I've only got limited disk space & hosting capacity, so I know my supplemental index is tiny - that's why I focus on the Firefox History as a starting point, because the supplemental index needs to be high quality and things I will use. Everything that goes in the index has to be worth the disk space I'm spending on it. But, whenever I come across an interesting informative website, I check if they have a sitemap or RSS feed, so I can add them to my indexing schedule too.
Long story short, I think this helps break a little bit out of the local maxima that Google alone gives. I don't think I'd be getting (much) deeper results from Google because they just don't allow you to surface the deeper links anymore.
I started with a metasearch, since that's (mostly) all Kagi is. I send prepaid-API calls to Brave, Mojeek, Marginalia & Yep for every query, and get about 200 results back on every search. The cost is far less than I paid Kagi. My first version was a single PHP file written by Claude Sonnet 3.6 (!), any modern AI would one-shot something dramatically better. Obviously you can iterate & improve it over time yourself. Grouping the results by domain and ranking by how many search engines return the same page/domain will get you ~60% of the ranking quality.
Over the years I added more ranking signals and had Claude build a ranking optimizer. I provide "golden queries" ranked as I would prefer, and the optimizer runs experiments to optimize the weights for each ranking signal. It isn't perfect, especially since I only use on-page signals. But it has been good enough that I don't miss Google.
My own index is just a couple of SQLite databases. It is ridiculous how far you can get with SQLite, FTS Full Text Search & its built-in BM25. Each webpage takes up 10KB of index storage on average, once trimmed down to just the indexable text. I never clear my Firefox history, so I went through my history cache to find which sites I actually visit, then made a command line indexer to run on my laptop and index them in the mornings. Most sites offer a sitemap or RSS file, so you don't need to worry about crawling the site. My tiny index doesn't answer every query, and that's what the metasearch is for. But surprisingly often, that tiny subset of the internet does have the answer I need, and it saves me a paid search API fee every time it does.
My system is held together with duct-tape and hope, so for most people it's easier just to use Kagi (or Uruky.com). If you do want to build it out, the blog at marginalia.nu has far more useful technical details than anything I can offer. But if you do go down the rabbit hole, I think you'll start questioning how a giant enterprise like Google can manage to screw up search so much.