RAG Vault
by RobThePCGuy
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_PATH | No | Where vectors are stored. Default: ./lancedb/ | ./lancedb/ |
| BASE_DIR | No | Only files under this path can be accessed. Default: current directory | . |
| WEB_PORT | No | Port for web interface. Default: 3000 | 3000 |
| CACHE_DIR | No | Model cache directory. Default: ./models/ | ./models/ |
| RAG_RRF_K | No | RRF smoothing constant (only applies in rrf mode). Default: 60 | 60 |
| MODEL_NAME | No | HuggingFace embedding model. Default: Xenova/all-MiniLM-L6-v2 | Xenova/all-MiniLM-L6-v2 |
| UPLOAD_DIR | No | Temporary directory for web UI file uploads. Default: ./uploads/ | ./uploads/ |
| RAG_API_KEY | No | API key for authentication. Default: unset | |
| CORS_ORIGINS | No | Allowed origins (comma-separated, or *). Default: localhost | localhost |
| RAG_GROUPING | No | Quality filter: unset, similar (top group only), or related (top 2 groups). Default: unset | |
| MAX_FILE_SIZE | No | Biggest file you can ingest (bytes). Default: 104857600 (100 MB) | 104857600 |
| JSON_BODY_LIMIT | No | Max request body size. Default: 5mb | 5mb |
| RAG_SEARCH_MODE | No | Fusion mode: boost (multiplicative keyword boost) or rrf (Reciprocal Rank Fusion). Default: boost | boost |
| REQUEST_LOGGING | No | Turn on request audit logging. Default: false | false |
| RAG_HYDE_API_KEY | No | API key for LLM backend (required when RAG_HYDE_BACKEND=api). Default: unset | |
| RAG_HYDE_BACKEND | No | rule-based for local template expansion, api for LLM-based HyDE. Default: rule-based | rule-based |
| RAG_HYDE_ENABLED | No | Turn on query expansion for better recall. Default: false | false |
| RAG_MAX_DISTANCE | No | Drops results below this relevance threshold (use with boost mode). Default: unset | |
| RAG_HYBRID_WEIGHT | No | Balance between vector and BM25. 0 = vector-only, 1.0 = BM25-only. Default: 0.6 | 0.6 |
| ALLOWED_SCAN_ROOTS | No | Directories allowed for database scanning. Default: Home directory | |
| RAG_HYDE_API_MODEL | No | Model for LLM-based expansion. Default: claude-haiku-4-5-20251001 | claude-haiku-4-5-20251001 |
| RAG_RERANKER_MODEL | No | HuggingFace cross-encoder model. Default: Xenova/ms-marco-MiniLM-L-6-v2 | Xenova/ms-marco-MiniLM-L-6-v2 |
| REQUEST_TIMEOUT_MS | No | API request timeout. Default: 30000 | 30000 |
| RAG_FTS_COOLDOWN_MS | No | How long to wait before retrying FTS after hitting the failure limit. Default: 300000 (5 min) | 300000 |
| RAG_HYDE_EXPANSIONS | No | Number of expanded queries to generate. Default: 2 | 2 |
| RAG_RERANKER_DEVICE | No | Device for the reranker (same options as RAG_EMBEDDING_DEVICE). Default: auto | auto |
| RAG_EMBEDDING_DEVICE | No | Device for running embeddings: auto, cpu, cuda, dml, webgpu, wasm, gpu, webnn. Default: auto | auto |
| RAG_FTS_MAX_FAILURES | No | Full-text search failures before FTS is temporarily disabled. Default: 3 | 3 |
| RAG_RERANKER_ENABLED | No | Turn on cross-encoder reranking for better results. Default: false | false |
| RATE_LIMIT_WINDOW_MS | No | Rate limit time window (ms). Default: 60000 | 60000 |
| RAG_HYDE_API_BASE_URL | No | API endpoint for LLM backend. Default: https://api.anthropic.com | https://api.anthropic.com |
| RATE_LIMIT_MAX_REQUESTS | No | Max requests per window. Default: 100 | 100 |
| RERANKER_INIT_TIMEOUT_MS | No | Timeout for model download and initialization. Default: 600000 (10 min) | 600000 |
| RAG_GROUPING_STD_MULTIPLIER | No | How many standard deviations between groups counts as a relevance gap. Default: 1.5 | 1.5 |
| RAG_HYBRID_CANDIDATE_MULTIPLIER | No | How many extra vector candidates to grab before keyword reranking. Default: 2 | 2 |
| RAG_RERANKER_CANDIDATE_MULTIPLIER | No | Fetch this many extra candidates for the reranker to score. Default: 2 | 2 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RobThePCGuy/rag-vault'
If you have feedback or need assistance with the MCP directory API, please join our Discord server