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