CoolFace
Apppublic

bozcaglar/burak-chatbot

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

๐Ÿข RAG AI Assistant

This Space hosts a Retrieval-Augmented Generation (RAG) chatbot that allows you to inject custom knowledge into an open-source Large Language Model. It is built using LangChain, FAISS, and Gradio.

๐Ÿš€ How to Use

  1. 1.Upload a Document: Drag and drop a .csv or .pdf file into the upload box. The app will automatically chunk the text and embed it into a FAISS vector database. Wait for the "โœ… Database Ready!" confirmation.
  2. 2.Set the Persona: Expand the "Additional Inputs" section at the bottom of the chat to customize the bot's System Prompt (e.g., "You are a pirate customer support agent").
  3. 3.Chat: Ask questions! The bot will retrieve relevant chunks from your document and use them to formulate its answer.

๐Ÿ› ๏ธ Tech Stack

  • โ€”LLM: Mistral-7B (via Hugging Face Inference API)
  • โ€”Embeddings: sentence-transformers/all-MiniLM-L6-v2
  • โ€”RAG Framework: LangChain (PyPDFLoader, CSVLoader, FAISS)
  • โ€”Frontend: Gradio