Skip to content

Add Real-World Project: Build a Hybrid Search Demo - #287

Open
abderrahim-lectures wants to merge 1 commit into
mainfrom
add-hybrid-search
Open

Add Real-World Project: Build a Hybrid Search Demo#287
abderrahim-lectures wants to merge 1 commit into
mainfrom
add-hybrid-search

Conversation

@abderrahim-lectures

Copy link
Copy Markdown
Owner

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

  • Lesson: docs/projects/hybrid-search/index.md + _category_.json (position 23)
  • Example: examples/hybrid-search/ — CLI (main.py), 11-passage corpus, 10 test queries, 14-cell notebook, pyproject.toml/uv.lock/.python-version/.gitignore/README.md
  • Registration: src/data/projects.ts, docs/projects/index.mdx, src/pages/index.tsx (tags: AI Agents, Retrieval-Augmented Generation, Developer Tools)

Verification

  • npm run typecheck — passes
  • npm run build — passes for en/ar/es/fr (only pre-existing broken-anchor warnings on translated docs-qa-bot pages, unrelated)
  • python main.py --build — saves 11×384 index; --evaluate → keyword 5/10, semantic 10/10, hybrid 10/10
  • Notebook executed end-to-end (14/14 cells, no errors)

Closes #286

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Real-World Project: Build a Hybrid Search Demo

1 participant