James-RAG-Evol
Health Warn
- License Γ’β¬β License: MIT
- Description Γ’β¬β Repository has a description
- Active repo Γ’β¬β Last push 0 days ago
- Low visibility Γ’β¬β Only 5 GitHub stars
Code Pass
- Code scan Γ’β¬β Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions Γ’β¬β No dangerous permissions requested
No AI report is available for this listing yet.
π Local-first Graph-RAG with ontology, 3-stage security, self-evolution scaffold. 100% Ollama. MIT.
PROJECT JAMES
Security-focused, locally-runnable Graph-RAG knowledge engine
with explicit reasoning paths and self-evolution scaffolding.

νκ΅μ΄ README Β· π μ²μ μμνμλ λΆ (10μ΄λ λ°λΌν μ μμ΄μ)
Project Status: v0.1.0 (alpha / research stage)
This is an early-stage, actively-researched project.
The core engine works, but:
- Designed and tested with security-first principles
- NOT production-ready β see SECURITY.md
- Many features are scaffolded β real-data testing in progress
- Open to collaboration and feedback
What's Different
JAMES combines five ideas that are rarely found together:
- Graph-RAG with ontology β relations carry semantic meaning beyond embeddings
- Built-in security layer β RBAC + ABAC + instruction isolation
- Self-evolution scaffold β feedback signals β patch proposals
- Personality system β 11 tunable traits influence responses
- 100% local β runs on a laptop with Ollama
Honest disclosure: each feature is a working prototype, not a finished product. Real-data tuning is ongoing.
Quick Start
Prerequisites
- Python 3.11+
- Ollama installed and running
- Min 16GB RAM (32GB+ recommended)
- (Optional) NVIDIA GPU for faster inference
- (Optional) Tavily API key for web search (free 1k/month)
Installation
git clone https://github.com/Hashevolution/James-RAG-Evol
cd James-RAG-Evol
# Configure environment
cp .env.example .env
# Edit .env β set JAMES_API_KEY, JAMES_JWT_SECRET
# Install dependencies
pip install -r requirements.txt
# Pull a small LLM
ollama pull gemma2:2b
# Start the server
python server_llmwiki.py
Open http://localhost:8000
Architecture
[User Query]
β
[Security Filter] β 31+ injection patterns
β
[Query Router] β chat / coding / retrieval / web_search
β
[Hybrid Search] β Vector(60%) + BM25(20%) + keyword(10%) + name(10%)
β
[Graph Engine] β DFS + confidence + sensitivity gating
β
[Reasoning Loop] β retrieve β expand β verify
β
[Output Filter] β PII masking + role-based filter
β
[Answer + Reasoning Path]
Folder Structure
James-RAG-Evol/
βββ core/ User interface layer + LLM clients
βββ llm/ LLM abstraction (providers/)
βββ tools/ Feature modules (8 subfolders)
βββ frontend/ Web UI (HTML + JS)
βββ processors/ File preprocessing
βββ utils/ Utilities
βββ wiki/ Knowledge graph (markdown-based)
βββ memory/ Long-term memory DB
βββ workspace/ Runtime data (backups, patches, proposals)
βββ scripts/ Operational scripts
βββ reports/ Test results
βββ server_llmwiki.py Main server entry point
Security Approach
JAMES treats security as a design principle, not a feature:
- 3-stage access control: Vector β Graph β Output
- RBAC (4 roles) + ABAC (4 sensitivity levels)
- Instruction isolation: separates commands from data
- JWT auth + rate limiting + full audit log
- Sandboxed execution (for tool calls)
Realistic note: synthetic-data testing differs from adversarial production testing. See SECURITY.md.
Current Features
| Feature | Status |
|---|---|
| Hybrid Search (Vector + BM25) | Working |
| Graph-RAG with ontology | Working |
| Security layer (RBAC/ABAC) | Working |
| Multimodal (image/video) | Scaffolded |
| Self-evolution | Scaffolded (needs data) |
| Web search integration | Working (Tavily/DDG) |
| Multi-LLM routing | Working |
| Real-data validation | Pending |
Tech Stack
- Backend: FastAPI + Uvicorn
- LLM: Ollama (Gemma, DeepSeek-Coder, LLaVA)
- Vector DB: ChromaDB
- Embedding: Sentence-Transformers (MiniLM)
- Search: BM25 + Vector hybrid
- Web search: Tavily (primary) + DuckDuckGo (fallback)
- Auth: JWT (python-jose)
- Storage: SQLite + markdown wiki
Roadmap
See ROADMAP.md. Summary:
- v0.1 (current): Core engine + scaffolding
- v0.2: Real-data validation + polish
- v0.3: Multi-agent + Neo4j option
- v1.0: Production hardening
Contributing
Welcome! See CONTRIBUTING.md.
Priority areas:
- Documentation, examples, translations
- Bug fixes, test coverage
- New tool integrations and LLM provider support
License
Licensed under the MIT License. Use freely. See LICENSE.
A full inventory of third-party dependency licenses is available in
THIRD_PARTY_LICENSES.md.
Acknowledgements
Inspired by:
- Microsoft GraphRAG
- LightRAG
- Graphiti
- Palantir-style ontology approaches
Disclaimer
Use at your own risk. This is research code. No guarantees regarding sensitive-data handling or production security without further hardening.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found