treygrainger/ai-powered-search
The codebase for the book "AI-Powered Search" (Manning Publications, 2025) and associated "AI-Powered Search: Modern Retrieval for Humans & Agents" Maven course
What it solves
Search engines are expected to understand natural language queries and each user’s context and preferences. This project provides hands-on code examples that teach modern machine learning techniques to make search more intelligent, relevant, and domain-aware.
How it works
The code is distributed as Jupyter notebooks and packaged in Docker containers, so the only setup needed is Docker. Running docker compose up starts interactive notebooks with all examples. The examples use Python and PySpark for data processing, with Apache Solr as the default search engine, but implementations are abstracted to work with other engines and vector databases. Each notebook walks through a specific technique step by step.
Who it’s for
This is for developers and data scientists who want to build smarter search experiences, and especially for readers of the book AI-Powered Search. It’s also useful for anyone learning how to apply AI to search without having to glue together infrastructure manually.
Highlights
- Semantic search using dense vector embeddings from foundation models
- Retrieval Augmented Generation (RAG) and question answering combined with LLMs
- Fine-tuning transformer-based LLMs for search
- Personalized search based on user signals and vector embeddings
- Collecting user behavior signals and building boosting models
- Semantic knowledge graphs for domain-specific learning
- Machine-learned ranking (learning to rank) and click models
- Generative and hybrid search techniques
- Everything runs with a simple Docker setup and works with many search engines and vector databases
Related
- Project
- Project
- Project
- Project