Skip to content

About

AI-powered RAG Research Assistant using FastAPI, FAISS, Sentence Transformers, Gemini, and Streamlit.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

📚 Research Assistant RAG

Retrieval-Augmented Generation (RAG) powered document question-answering system built with FastAPI, FAISS, Sentence Transformers, Gemini, and Streamlit.

🔗 Live Demo Frontend: https://research-assistant-rvw6i2kgkdmrdu8mpsnvm8.streamlit.app/

🔗 Backend API https://research-assistant-1-s6ak.onrender.com

📖 API Documentation Swagger Docs: https://research-assistant-1-s6ak.onrender.com/docs

✨ Features

✅ PDF Upload & Processing ✅ Automatic Text Extraction ✅ Smart Text Chunking ✅ Semantic Search with FAISS ✅ Retrieval-Augmented Generation (RAG) ✅ Multi-Document Search ✅ Conversational Memory ✅ Source Attribution ✅ Confidence Scoring ✅ Chat Export ✅ Interactive Streamlit Frontend


🛠️ Tech Stack

  • 🐍 Python
  • ⚡ FastAPI
  • 🎨 Streamlit
  • 🔍 FAISS
  • 🤗 Sentence Transformers
  • 🤖 Gemini API

🏗️ Architecture

Architecture


📸 Screenshots

🏠 Home Page

Home

📄 Upload PDF

Upload

❓ Ask Questions

Ask

💬 Chat History

Chat History


📂 Project Structure

research-assistant/
│
├── app/
│   ├── services/
│   └── utils/
│
├── ui/
│   └── streamlit_app.py
│
├── uploads/
├── data/
├── vectorstore/
│
├── tests/
├── main.py
├── requirements.txt
└── README.md

🚀 How It Works

  1. Upload one or more PDF documents.
  2. Extract text and split it into chunks.
  3. Generate embeddings using Sentence Transformers.
  4. Store embeddings in a FAISS vector index.
  5. Retrieve relevant chunks based on user queries.
  6. Use Gemini to generate context-aware answers.
  7. Display answers with confidence scores and sources.

🎯 Key Capabilities

  • Semantic document search
  • Retrieval-Augmented Generation (RAG)
  • Multi-document retrieval
  • Conversational memory
  • Source inspection
  • Confidence scoring
  • Chat export functionality

🔮 Future Improvements

  • Hybrid Search (FAISS + BM25)
  • Document Deletion & Re-indexing
  • User Authentication
  • Cloud Deployment
  • Advanced Reranking
  • Persistent Chat Storage

About

AI-powered RAG Research Assistant using FastAPI, FAISS, Sentence Transformers, Gemini, and Streamlit.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages