Add Python tutorial: Build Your Own Search Engine (inverted index + TF-IDF)#882
Open
Osamaali313 wants to merge 1 commit into
Open
Add Python tutorial: Build Your Own Search Engine (inverted index + TF-IDF)#882Osamaali313 wants to merge 1 commit into
Osamaali313 wants to merge 1 commit into
Conversation
Adds a from-scratch, dependency-free (Python stdlib only) project tutorial to Python > Miscellaneous. It builds a tokenizer, inverted index, boolean queries (AND/OR/NOT), and TF-IDF ranking step by step, with a guided README, focused modules, runnable sample documents, and a 20-test unittest suite.
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds another learning resource link to the README’s project/resources list for building a search engine.
Changes:
- Added a “Build Your Own Search Engine (inverted index + TF-IDF)” link to the README resource list.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
518
to
522
| - [Part 1](http://www.ardendertat.com/2011/05/30/how-to-implement-a-search-engine-part-1-create-index/) | ||
| - [Part 2](http://www.ardendertat.com/2011/05/31/how-to-implement-a-search-engine-part-2-query-index/) | ||
| - [Part 3](http://www.ardendertat.com/2011/07/17/how-to-implement-a-search-engine-part-3-ranking-tf-idf/) | ||
| - [Build Your Own Search Engine (inverted index + TF-IDF)](https://github.com/Osamaali313/build-your-own-search-engine) | ||
| - [Build the Game of Life](https://robertheaton.com/2018/07/20/project-2-game-of-life/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new project-based tutorial under Python → Miscellaneous:
[Build Your Own Search Engine (inverted index + TF-IDF)](https://github.com/Osamaali313/build-your-own-search-engine)It's a step-by-step tutorial that builds a working full-text search engine
from scratch, using the Python standard library only (no
nltk,whoosh,numpy, or any third-party package). The guided README walks through:AND/OR/NOT), andidf = log(N/df)),wired behind a small CLI that indexes a folder of
.txtfiles. Each module isfocused and covered by a 20-test
unittestsuite.Checklist (per CONTRIBUTING.md):
series (this is a fresh, from-scratch, dependency-free repo with full code and
tests).
[Title](link); direct link, no URL shortener.