← All projects

ChatBook: RAG & Generative AI

An end-to-end book question-answering pipeline: text ingestion, embeddings, Qdrant retrieval, and context-grounded generation.

Architecture diagram for ChatBook: RAG & Generative AI

About the project

Built a pipeline to stream public-domain book paragraphs from the Gutenberg dataset on Hugging Face, filter the text, and prepare it for indexing.

Generated vector representations with FastEmbed and BGE-small-en-v1.5, then stored paragraph embeddings and metadata in Qdrant. Used cosine similarity to retrieve the passages most relevant to a question.

Integrated the OpenAI API for answers grounded in retrieved passages, with instructions to avoid unsupported claims. Deployed the application on Hugging Face Spaces with a Gradio interface.

Next project →