PHPackages                             neuron-core/graph-retrieval - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. neuron-core/graph-retrieval

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

neuron-core/graph-retrieval
===========================

Neuron AI retrieval component augmented with structured information from a knowledge graph database.

0.1.0(5mo ago)302MITPHPPHP ^8.1

Since Dec 19Pushed 5mo agoCompare

[ Source](https://github.com/neuron-core/graph-retrieval)[ Packagist](https://packagist.org/packages/neuron-core/graph-retrieval)[ RSS](/packages/neuron-core-graph-retrieval/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Neuron AI Retrieval for GraphRAG
================================

[](#neuron-ai-retrieval-for-graphrag)

This module implements the GraphRAG retrieval strategy for the [Neuron AI PHP framework](https://docs.neuron-ai.dev).

Requirements
------------

[](#requirements)

- PHP: ^8.1
- Neuron: ^3.0

Installation
------------

[](#installation)

Install the latest version of the package:

```
composer require neuron-core/graph-retrieval

```

How to use GraphRetrieval in your agent
---------------------------------------

[](#how-to-use-graphretrieval-in-your-agent)

Return an instance of `GraphRetrieval` from the RAG method `retrieval()`:

```
use NeuronAI\RAG\RAG;
use NeuronAI\RAG\Retrieval\RetrievalInterface;
use NeuronAI\RAG\GraphStore\Neo4jGraphStore;
use NeuronCore\GraphRetrieval\GraphRetrieval;

class GraphRAGAgent extends RAG
{
    protected function retrieval(): RetrievalInterface
    {
        return new GraphRetrieval(
            $this->resolveVectorStore(),
            $this->resolveEmbeddingsProvider(),
            $this->resolveProvider(),
            new Neo4jGraphStore()
        );
    }

    protected function embeddings(): EmbeddingsProviderInterface
    {
        return new ...
    }

    protected function vectorStore(): VectorStoreInterface
    {
        return new ...
    }
}
```

What is Neuron?
---------------

[](#what-is-neuron)

Neuron is a PHP framework for creating and orchestrating AI Agents. It allows you to integrate AI entities in your existing PHP applications with a powerful and flexible architecture. We provide tools for the entire agentic application development lifecycle, from LLM interfaces, to data loading, to multi-agent orchestration, to monitoring and debugging.

In addition, we provide tutorials and other educational content to help you get started using AI Agents in your projects.

**[Go to the official documentation](https://neuron.inspector.dev/)**

[**Video Tutorial**](https://www.youtube.com/watch?v=oSA1bP_j41w)

[![Neuron & Inspector](./docs/youtube.png)](https://www.youtube.com/watch?v=oSA1bP_j41w)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance73

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

150d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/320345fbe48c7cff2b3a25992c8207e959ae7817fb2fb97bb176dc6e559aacf5?d=identicon)[valerione](/maintainers/valerione)

---

Top Contributors

[![ilvalerione](https://avatars.githubusercontent.com/u/13559278?v=4)](https://github.com/ilvalerione "ilvalerione (5 commits)")

---

Tags

agentic-aiagentic-frameworkagentic-workflowaiai-agentai-agentsragrag-chatbotrag-pipeline

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/neuron-core-graph-retrieval/health.svg)

```
[![Health](https://phpackages.com/badges/neuron-core-graph-retrieval/health.svg)](https://phpackages.com/packages/neuron-core-graph-retrieval)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
