Back to Home
bsuraj23 icon

rag-chatbot-mcp-mvp

Verified Safe

by bsuraj23

Overview

A RAG chatbot API that allows users to upload a single PDF document and ask questions based on its content, leveraging Langchain, Pinecone, and OpenAI for intelligent retrieval and question answering.

Installation

Run Command
python app/main.py

Environment Variables

  • PINECONE_API_KEY
  • OPENAI_API_KEY
  • PINECONE_INDEX

Security Notes

The application uses environment variables for sensitive API keys (Pinecone, OpenAI), which is good practice. However, the CORS middleware is configured to allow all origins ('*'), which is generally not recommended for production environments as it can be an information disclosure risk. PDF files are saved to a temporary 'uploads' directory without an explicit cleanup mechanism, which could lead to disk space exhaustion over time. File type and size validation are implemented for uploaded PDFs. No 'eval' or obvious malicious patterns were detected in the provided source code.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens1200
Stars0
Forks0
Last Update2025-12-13

Tags

RAGChatbotFastAPILangchainPinecone