graphrag-expert

Guide GraphRAG pipelines to retrieve and cite Neo4j knowledge-graph evidence for biomedical questions.

4|1|Updated Jan 8, 2024
One-click install
npx skills add https://github.com/OpenSourcePharmaFoundation/ospf-ayurveda-kg --skill graphrag-expert
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: graphrag-expert
Source: https://github.com/OpenSourcePharmaFoundation/ospf-ayurveda-kg/tree/main/.claude/skills/graphrag-expert
Command: npx skills add https://github.com/OpenSourcePharmaFoundation/ospf-ayurveda-kg --skill graphrag-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GraphRAG teams need a reliable way to retrieve, ground, and cite knowledge-graph evidence when answering biomedical questions for drug repurposing and mechanism-of-action discovery.

Core Features & Use Cases

  • Hybrid retrieval design: combines Cypher-based structured querying with vector similarity search to identify relevant entities and paths in the OSPF Ayurveda knowledge graph.
  • Evidence-preserving context assembly: turns 1–3 hop subgraph traversal results into grounded LLM context while preserving provenance fields like pmid, gdaScore, and source.
  • Prompt engineering and Cypher generation guardrails: crafts prompts that include the full Neo4j schema and enforce non-hallucination and citation requirements.

Quick Start

Use the graphrag-expert skill to draft an intent-classifier plus hybrid retrieval plan (vector entry discovery, Cypher generation, 1–3 hop traversal, and citations) for a specific Oral Mucositis question.

Frequently Asked Questions about graphrag-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a GraphRAG pipeline for biomedical drug repurposing using Neo4j?▼

To build a biomedical GraphRAG pipeline, combine vector similarity search with Cypher querying to retrieve 1-3 hop subgraphs. You must preserve evidence properties like pmid and gdaScore during context assembly to ensure non-hallucination and proper citation formatting.

What is the best way to generate Cypher queries for knowledge-graph retrieval?▼

The best way to generate Cypher queries is through prompt engineering that includes the full Neo4j schema. This enforces multi-hop traversal constraints and ensures the LLM produces valid queries for retrieving grounded evidence from the knowledge graph.

How do I ground LLM responses with knowledge-graph evidence to prevent hallucination?▼

To ground LLM responses and prevent hallucination, assemble subgraph traversal results into LLM-ready context while preserving provenance fields. Apply citation-focused response formatting to ensure every output links back to original evidence.

Does hybrid retrieval work for biomedical mechanism-of-action questions?▼

Yes, hybrid retrieval works for mechanism-of-action questions by using vector entry discovery alongside structured Cypher generation. This combination identifies relevant entities and paths within the knowledge graph for evidence-grounded answers.

Why do I need to preserve evidence properties like gdaScore during GraphRAG context assembly?▼

Preserving evidence properties like gdaScore, pmid, and source during context assembly maintains data provenance. This strict adherence to the Neo4j schema supports non-hallucination by providing verifiable citations for biomedical drug repurposing answers.