Add Real-World Project: Build a Hybrid Search Demo - #287
Open
abderrahim-lectures wants to merge 1 commit into
Open
Add Real-World Project: Build a Hybrid Search Demo#287abderrahim-lectures wants to merge 1 commit into
abderrahim-lectures wants to merge 1 commit into
Conversation
Keyword (BM25-style), embedding-based, and hybrid retrieval side by side over an 11-passage corpus, with a 10-query evaluation (5 keyword, 5 paraphrase) and a 14-cell notebook. No LLM, no API key. Co-authored-by: deepseek-v4-flash-free <noreply@opencode.ai>
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.
Summary
Adds project #20 of the capstone backlog — a "Build a Hybrid Search Demo" project with no LLM and no API key. Teaches that keyword (BM25-style), embedding, and hybrid retrieval each win in different cases, with a concrete 10-query evaluation proving it (keyword 5/10, semantic 10/10, hybrid 10/10).
Changes
docs/projects/hybrid-search/index.md+_category_.json(position 23)examples/hybrid-search/— CLI (main.py), 11-passage corpus, 10 test queries, 14-cell notebook,pyproject.toml/uv.lock/.python-version/.gitignore/README.mdsrc/data/projects.ts,docs/projects/index.mdx,src/pages/index.tsx(tags: AI Agents, Retrieval-Augmented Generation, Developer Tools)Verification
npm run typecheck— passesnpm run build— passes for en/ar/es/fr (only pre-existing broken-anchor warnings on translateddocs-qa-botpages, unrelated)python main.py --build— saves 11×384 index;--evaluate→ keyword 5/10, semantic 10/10, hybrid 10/10Closes #286