Back to selected work

CASE STUDY 02 / RETRIEVAL-AUGMENTED GENERATION

University AI Assistant.

A conversational interface for exploring documents about AI adoption in universities, powered by a PDF-to-RAG pipeline.

My role

Applied AI development

Project status

Public repository · Academic project

Built with
  • LangChain
  • Ollama
  • Chroma
  • Groq
  • Streamlit
University AI AssistantARCHITECTURE
01 / PDFIngestion

Documents · LangChain chunks

02 / OLLAMALocal index

Local embeddings · Chroma

03 / GROQGeneration

Question + retrieved context

A natural-language answer

Streamlit interface · Documents on AI in universities

Illustrative architecture · No simulated results
01

The problem

Documents about adopting AI in higher education contain useful guidance, but finding a relevant passage can take time. The project explores a natural-language interface for asking questions about that material.

Its subject is university AI adoption; it is not an admissions service or a student-record system.

02

Context & role

I built an applied AI project that brings together document ingestion, retrieval, language-model generation, and a Streamlit interface. A separate university assessment feature supports the document assistant.

03

The solution

PDF text is split into chunks of 1,000 characters with a 200-character overlap. Ollama runs the nomic-embed-text embedding model locally, and Chroma stores the resulting vectors.

When a user asks a question, the pipeline retrieves the three most relevant chunks and passes that context to a Groq-hosted language model through LangChain. Streamlit provides the interface.

An optional Random Forest component assesses a university profile. It is supporting functionality, separate from the document retrieval path.

04

Technical decisions

Overlapping chunks retain some context across segment boundaries. Vector retrieval narrows the material passed to the language model rather than sending every document for every question.

Embeddings run locally through Ollama, while answer generation uses Groq. This is a hybrid architecture: the complete assistant is not fully offline.

05

Evidence

The public repository contains the application implementation in PROJET/app.py and project documentation in PROJET/README.md. The illustration on this page explains the architecture; it is not an application screenshot.

The source code makes the document ingestion, retrieval, and answer-generation stages available for inspection.

06

Limitations

Answers depend on the source PDFs, the retrieved passages, and the language model. The interface does not currently provide implemented answer citations or conversational memory.

A deployed version would need an evaluation set and additional work on grounding, error handling, and document updates. Generated answers should be checked against the underlying documents.

07

Explore the project

The source link opens the University AI Assistant repository, including the Streamlit application and its setup documentation.

06 / LET’S TALK

Something in mind?
Let’s make it work.

A project to build, a data problem to untangle, or a PFE opportunity. I’d like to hear about it.