Custom Chatbot with RAG
Feb 15, 2024
·
1 min read

This project uses a deliberately small but structured domain to explore a larger idea: how to make language-model outputs more reliable by grounding them in retrieved context.
The chatbot is built around a curated dataset of fictional characters and uses a full RAG pipeline with embeddings, retrieval, and prompt conditioning. The dataset is playful, but the methodological point is serious: retrieval changes the behavior of the model from generic completion to context-bounded reasoning.
Because the underlying data is semantically rich, the system can handle not only question answering but also character comparison, recommendation, and trait-based exploration. That makes it a useful compact example of retrieval-driven NLP design.

Authors
Stefano Blando
(he/him)
PhD Student in Artificial Intelligence
Stefano Blando is a PhD student in the National PhD Program in Artificial Intelligence at
Scuola Superiore Sant’Anna and the University of Pisa. His research lies at the intersection
of AI, agent-based modeling, and economics. He studies adaptive multi-agent systems,
statistical verification of economic simulations, and robust quantitative methods for
financial and socio-economic data.