Skip to content

Rockjone-pixel/GenAI_ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– GenAIChatBot ~ RizzBot

A document-aware, hallucination-resistant chatbot built with OpenAI + LangChain + RAG + Embeddings. This chatbot answers your queries from uploaded PDF notes, and if the answer isn’t present in your notes, it falls back to Wikipedia with a disclaimer.

✨ Features

πŸ“„ Upload PDF notes and ask questions directly.

πŸ” Uses Retrieval-Augmented Generation (RAG) to fetch answers from your notes.

🌍 Falls back to Wikipedia search if the answer is not in the provided documents.

πŸ’¬ Beautiful Streamlit UI with custom chat bubbles and Lottie animations.

🧠 Reduces hallucination problem of LLMs by making sources transparent.

πŸ› οΈ Tech Stack

Language Model: GPT-3.5 Turbo (OpenAI)

Frameworks & Libraries:

LangChain – Document retrieval & chains

FAISS – Vector similarity search

PyPDF2 – Extract text from PDFs

python-docx – Extract text from DOCX files

Streamlit – Interactive UI

dotenv – API key management

πŸš€ How It Works

Upload your notes (PDF, DOCX, or TXT).

Notes are split into chunks using RecursiveCharacterTextSplitter.

Chunks are converted into embeddings using OpenAIEmbeddings.

User queries are matched with the most relevant chunks using FAISS similarity search.

The chatbot generates a response using ChatOpenAI with a custom prompt.

If the relevant context is not found, the bot fetches a short summary from Wikipedia.

Stylized chat bubbles display the user query and bot response in a beautiful Streamlit UI.

About

GenAIChatBot is a document-aware, hallucination-resistant chatbot that combines Gemini + LangChain + RAG + embeddings to answer queries from given files, and falls back to Wikipedia when needed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages