Dev.to AI ๐Ÿค– Ai ๐Ÿ‘ 0 ๐Ÿ“– 2 min read

Building TUF GPT: A University AI Assistant Using RAG

Hey developers! ๐Ÿ‘‹ I'm Muhammad Saim, a Computer Science student and Web Developer interested in building practical applications with AI. For one of my projects, I built TUF GPT, an AI-powered university assistant desig

Hey developers! ๐Ÿ‘‹

I'm Muhammad Saim, a Computer Science student and Web Developer interested in building practical applications with AI.

For one of my projects, I built TUF GPT, an AI-powered university assistant designed around The University of Faisalabad (TUF).

In this article, I'll share what the project does, the technologies behind it, and how I approached building it.

๐Ÿ’ก The Idea

University websites contain a lot of information, and finding specific details can sometimes take time.

I wanted to explore how an AI-powered assistant could make university-related information easier to access through a conversational interface.

That idea became TUF GPT.

๐Ÿค– What Is TUF GPT?

TUF GPT is an AI-powered university assistant that uses information from the university's official website as its knowledge base.

Instead of relying only on the language model's general knowledge, the system uses Retrieval-Augmented Generation (RAG) to retrieve relevant information and provide contextual responses.

โš™๏ธ How Does It Work?

The project follows a basic RAG workflow:

  1. Data Collection: Relevant content is collected from the official TUF website.
  2. Text Processing: The collected content is divided into smaller chunks.
  3. Embeddings: Sentence Transformers converts text chunks into vector representations.
  4. Vector Storage: ChromaDB stores the embeddings for retrieval.
  5. Retrieval: When a user asks a question, relevant information is retrieved from the knowledge base.
  6. Response Generation: The retrieved context is passed to the language model to generate a response.

This approach helps connect the model's responses to information from the university's website.

๐Ÿ› ๏ธ Technology Stack

Here are the main technologies I used:

  • Python โ€” Backend development
  • FastAPI โ€” Backend API
  • Streamlit โ€” User interface
  • Groq API โ€” Language model integration
  • ChromaDB โ€” Vector database
  • Sentence Transformers โ€” Text embeddings
  • BeautifulSoup โ€” Website content extraction

๐Ÿงฉ What I Learned

Building TUF GPT helped me explore several areas beyond traditional web development.

Some of the things I learned include:

  • Understanding the fundamentals of Retrieval-Augmented Generation.
  • Working with vector databases and embeddings.
  • Connecting frontend applications with backend APIs.
  • Integrating language models into practical applications.
  • Understanding how data preparation affects AI application results.

One important takeaway was that building an AI application isn't just about connecting an API to a chatbot interface. The quality of the knowledge base and retrieval process matters too.

๐Ÿš€ Final Thoughts

TUF GPT was a valuable learning experience that helped me move beyond basic chatbot integrations and explore how retrieval-based AI applications work.

I'm continuing to explore web development, backend engineering, and practical AI solutions.

๐Ÿ’ป Portfolio: https://www.muhammadsaim.me

๐Ÿ”— GitHub: https://github.com/SaimZulfiqar-Dev

Thanks for reading!

I'd love to hear from other developers working with RAG, vector databases, and AI-powered applications. What are you building these days?

Written by Muhammad Saim | Web Developer & AI Solutions Developer

๐Ÿ“ฐ Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.