A fully local Retrieval-Augmented Generation (RAG) application built with Microsoft Foundry Local, Streamlit, and SQLite for answering questions over academic documents.
The assistant performs semantic search on PDF and DOCX files, retrieves the most relevant document chunks, and generates grounded answers using a locally running language model.
- Ask questions about academic PDF and DOCX documents
- Semantic search using vector embeddings
- Fully local AI inference with Microsoft Foundry Local
- Source-aware answers with document references
- SQLite vector database
- Interactive Streamlit interface
- Custom extractive parsers for structured university documents
- Works completely offline after setup
- Python
- Microsoft Foundry Local SDK
- Streamlit
- SQLite
- NumPy
- PDFPlumber
- python-docx
User Question
│
▼
Streamlit Interface
│
▼
Semantic Retriever
│
▼
SQLite Vector Database
│
▼
Relevant Document Chunks
│
▼
Extractive Parser
│
▼
Phi-3.5 Mini (Foundry Local)
│
▼
Final Answer
Here are some example questions the assistant can answer:
- What are the compulsory courses in the fifth semester of the Mathematics Department?
- Which documents should be prepared before an Erasmus internship?
- What information should be included in an Erasmus invitation letter?
- What are the eligibility requirements for TÜBİTAK 2209-A?
- Which Computer Engineering courses are exempt in the Double Major Program?
Ela-Academic-Assistant
│
├── app.py # Streamlit application
├── requirements.txt
├── README.md
├── LICENSE
│
├── documents/ # Source academic documents
├── data/ # SQLite vector database
├── tests/ # Debug and testing scripts
│
└── src/
├── answer_builder.py
├── chat_engine.py
├── chunker.py
├── database.py
├── document_loader.py
├── embedding.py
└── retriever.py
git clone https://github.com/YOUR_USERNAME/Ela-Academic-Assistant.gitcd Ela-Academic-Assistantpython -m venv .venvWindows
.venv\Scripts\activatemacOS / Linux
source .venv/bin/activatepip install -r requirements.txtRun the Streamlit application:
streamlit run app.pyThen open your browser and navigate to:
http://localhost:8501
A short presentation of Ela Academic Assistant, covering the project motivation, RAG workflow, development process, debugging experience, and key learnings.
- Hybrid search (Semantic + Keyword)
- Conversation memory
- OCR support for scanned documents
- Multi-document reasoning
- Re-ranking for more accurate retrieval
- Highlighting cited passages in documents
- Support for additional document formats
This project is licensed under the MIT License.
See the LICENSE file for more information.





