Nithin Sai K J
Go · BM25 · VSM

Image search

This Go search engine indexes image captions and visual labels in memory, corrects misspelled query terms through a prefix trie, and ranks matching images with BM25 or TF-IDF cosine similarity.

Source code

Inverted index layout
Each normalized token points to a document frequency count and a contiguous postings list storing term frequencies and document lengths for ranking.
Trie spell correction
When a query token is missing from the vocabulary, the engine searches a prefix trie bounded by Levenshtein distance before looking up postings.
Ranking models
The engine scores over 30,000 indexed images using either Okapi BM25 (k1 = 1.2, b = 0.75) or TF-IDF cosine similarity.