💾 Archived View for gemi.dev › gemlog › 2022-06-04-better-search-results.gmi captured on 2023-04-26 at 13:33:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

-=-=-=-=-=-=-

Better Gemini Search Results with Kennedy and Gemipedia

2022-06-04 | #search #kennedy #cgi #gemipedia | @Acidus

A few months ago I built Kennedy, a Gemini search engine, which gets a decent amount of traffic:

🔭 Kennedy - Search Gemini

A few weeks ago, I built Gemipedia, a Gemini-first frontend to Wikipedia which includes, among other things, a search interface.

Gemipedia

I found that integrating Gemipedia results into Kennedy's search results created a great user experience. Specifically, when you do a search on Kennedy, I query not only the full text index for all of Gemini space, I also search Wikipedia for articles. If I get a hit, I return the top match as a Gemipedia link at the top of the first page of search results. I also include a link to Gemipedia's search results, containing more Wikipedia content which mentions your query.

I feel this is a good compromise that balances showing content on gemini with content from Wikipedia, without one overwhelming the other. I also made some tweaks to Kennedy's ranking algorithm which surfaces more valuable content.

As an example, take a look at the new Kennedy results for "Z80":

Search results for "Z80"

At the top, you get a link to Gempedia for the article about the "Zilog Z80", which gives you more context about your query. You also get the semantic description "8-bit microprocessor". Finally you get a direct link to an image of a Z80 microprocessor, which many Gemini browsers can render without leaving the results page.

Now, onto the results.

I certainly see room for improvement, but if I were interested in the Z80 computers, these results give me accurate and relevant results! Searching for other topics I am interested in also produces great results:

'Amiga' results

'offline' results

'gameboy' results

'Andy Hertzfeld' results

From "search" box to "answers" box?

What's interesting is Kennedy takes multiple actions, in parallel, on an incoming query. Currently it searches the full text index of Gemini content, as well as queries Wikipedia. However this can easily be expanded:

⛄️ Chilly Weather - Weather service

xyzzy

"Would you like to play a game?"

The goal of Kennedy is to direct people to intersting content on Gemini. Unlike Google evolving their "search" box into an "answers" box, I have no interest in keeping people on "kennedy.gemi.dev". I want to get users to awesome content and capsules as quickly as possible. Perhaps some of these use cases should instead redirect the user's input to someone else's service or CGI? Don't do unit conversions myself, detect a unit conversion, and redirect to cool tools like this:

Roly's Gemini Calculator

Have some thoughts or ideas? I'm always open to feedback!

Contact me

BTW, Kennedy is open source!

Kennedy Source Code