A RAG-based HR chatbot with MCP server for document retrieval and email functionality
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"iflow-mcp-imvirtue-ragchatbot-mcpserver","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Rag chatbot with a localhost MCP server Building a RAG-based HR chatbot for providing rules in the workplace with the **localhost MCP server** as a function-calling hub <img src="images/rag.jpg" width="500"> <img src="images/mcp-architecture.png" width="500"> ## Overview This project implements a Retrieval-Augmented Generation (RAG) chatbot using Streamlit and the MCP server. Users can upload PDF files, and the chatbot retrieves relevant information from the PDFs to answer natural language questions. The system leverages OpenAI models, LangChain utilities, and an in-memory vector store for efficient document retrieval. ## Features - **MCP Tool Integration**: Tool orchestration with **MCP** ensures smooth communication between document indexing, retrieval, and answer generation. The backend tools can be extended or replaced easily as new functionalities are added. - **PDF Upload and Parsing**: Upload a PDF file which is then parsed using `PDFPlumberLoader` to extract text content. - **Text Chunking**: The extracted text is split into smaller chunks using `RecursiveCharacterTextSplitter` to facilitate efficient indexing and retrieval. - **Document Indexing**: Chunks are indexed in an in-memory vector store with embeddings generated via `OpenAIEmbeddings`. - **Similarity Search (Consine Similarity)**: When a user submits a query, the chatbot performs a similarity search to retrieve the most relevant document chunks based on the query. - **Prompt-Based Answer Generation**: A custom prompt template combines the user question with retrieved context, and a GPT-4 powered LLM (using `ChatOpenAI`) generates the final answer. - **Interactive Interface**: The application uses Streamlit to provide an interactive, chat-like interface where user questions and bot responses are displayed. ## Result <img src="images/HRwithMCP.png" width="700">
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.