Back to Home
rajagopal17 icon

mcpRAG

Verified Safe

by rajagopal17

Overview

A Retrieval-Augmented Generation (RAG) system for document-based question answering using local embeddings and a Gemini LLM.

Installation

Run Command
python ragModel.py

Environment Variables

  • GEMINI_API_KEY

Security Notes

The system loads the Gemini API key from an environment variable (`.env`), which is good practice. Ollama embeddings are processed locally, reducing external data transfer risks. There are no obvious signs of 'eval', obfuscation, or direct shell command injection points from user input. A potential code structure issue in `ragModel.py` exists where the Gemini generation call is outside the `if __name__ == '__main__':` block, relying on variables defined within it. This is a code correctness concern rather than a direct security vulnerability but could lead to runtime errors or unexpected behavior if the file is imported.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassMedium
Avg Tokens395
Stars1
Forks0
Last Update2025-12-03

Tags

RAGLLMEmbeddingsFAISSOllamaGemini