Knowledge Graph Based Hybrid RAG System — AI skill for Claude Code
Knowledge Graph-RAG system using Neo4j, LangChain, LangGraph, Claude-3.5-Sonnet.
How to install Knowledge Graph Based Hybrid RAG System
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open safishamsi/Knowledge-Graph-Based-Hybrid-RAG-System and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Knowledge Graph Based Hybrid RAG System does
Knowledge Graph-RAG system using Neo4j, LangChain, LangGraph, Claude-3.5-Sonnet. Hybrid retrieval: SBERT embeddings + graph traversal + BM25. 61K papers, 190K authors from Scopus. 50% NDCG improvement, 57% bias reduction. Includes notebooks, evaluation scripts, benchmark queries. Python/Jupyter.
Alternatives in AI
- Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
- Sentrux — Real-time architectural sensor that helps AI agents close the feedback loop, enabling recursive self-improveme 2.9k ★
- Azure OpenAI .net — GPT-4, embeddings, DALL-E, and Whisper client 1.8k ★
README
Knowledge Graph-Based Hybrid RAG System
  
Academic search system combining knowledge graphs with retrieval-augmented generation to eliminate citation bias and hallucinations in research discovery.
Key Features
- 50% better search relevance (NDCG@10: 0.814) than traditional systems
- 57.5% reduction in temporal citation bias
- 67% fewer hallucinations through document grounding
- Sub-500ms query response times
- Automatic collaboration discovery via community detection
Tech Stack
- Knowledge Graph: Neo4j (61,945 papers, 189,972 authors)
- Embeddings: SBERT + FAISS indexing
- RAG Pipeline: LangChain/LangGraph + Claude-3.5-Sonnet
- Data Source: Scopus API integration
- Language: Python
Results
- 82% researcher preference over Google Scholar
- 64% reduction in literature review time
- 96% cost reduction vs GPT-4 ($1.02 vs $24/1000 queries)
Project Structure
Knowledge-Graph-Based-Hybrid-RAG-System/ ├── Neo4jKG/ ├── RAG/ ├── embeddings/ ├── scopusscraping/ ├── Dissertation/ ├── Data/ ├── LLMpoweredRAG.py ├── demowithinspector.pdf ├── queries.txt ├── uobkg.png ├── LICENSE └── README.md
Installation & Setup
Prerequisites
- Python 3.8+
- Neo4j Database
- Anthropic API key for Claude-3.5
Installation
git clone https://github.com/safishamsi/Knowledge-Graph-Based-Hybrid-RAG-System.git
cd Knowledge-Graph-Based-Hybrid-RAG-System
# Install dependencies
pip install neo4j sentence-transformers faiss-cpu langchain langchain-anthropic langgraph
# Set environment variables
export ANTHROPIC_API_KEY="your-api-key"
from LLMpoweredRAG import AcademicSearchSystem
# Initialize the system
search = AcademicSearchSystem()
# Search for papers
results = search.query("machine l
Related Skills
CodeContext OS
Task-aware code intelligence for Claude Code and AI coding agents — combining AST structure, hybrid BM25 + FAI
Anyindex MCP
Local MCP server for semantic code search. AST-aware chunking with tree-sitter, offline ONNX embeddings, hybri
Memory Lancedb Pro
Production-grade long-term memory system (v1.1.0-beta.8) for OpenClaw AI agents. Provides persistent, intellig
Local Memory MCP
Persistent local memory for Claude, Cursor & Codex. 21 MCP tools, hybrid retrieval (BM25 + vector RRF), bi-tem
Claude Persistent Memory
Give Claude Code persistent memory across sessions. Hybrid BM25 + vector semantic search, auto-structuring via
Production RAG
Production Multimodal RAG & Autonomous ReAct Agent platform: Dense+BM25+CLIP hybrid retrieval, cross-encoder r
Related Agents
Python RAG Backend Engineer
Production-grade Python RAG backend engineer specializing in ChromaDB vector storage, sentence-transformers em
Agentic AI Dev
Expert Agentic AI developer with Python 3.14, LangChain v1.2.8, LangGraph v1.0.7, and FastAPI 0.135.2. Use for
Hephaestus.Agent
AI tooling & pipelines specialist — LangChain/LangGraph chains, RAG architecture,