https://github.com/neuron-core/graph-retrieval
Neuron AI retrieval component augmented with structured information from a knowledge graph database.
https://github.com/neuron-core/graph-retrieval
agentic-ai agentic-framework agentic-workflow ai ai-agent ai-agents rag rag-chatbot rag-pipeline
Last synced: 3 months ago
JSON representation
Neuron AI retrieval component augmented with structured information from a knowledge graph database.
- Host: GitHub
- URL: https://github.com/neuron-core/graph-retrieval
- Owner: neuron-core
- License: mit
- Created: 2025-12-19T15:19:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-12-19T15:33:39.000Z (3 months ago)
- Last Synced: 2025-12-22T06:23:39.924Z (3 months ago)
- Topics: agentic-ai, agentic-framework, agentic-workflow, ai, ai-agent, ai-agents, rag, rag-chatbot, rag-pipeline
- Language: PHP
- Homepage: https://docs.neuron-ai.dev/rag/retrieval
- Size: 1.18 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Neuron AI Retrieval for GraphRAG
This module implements the GraphRAG retrieval strategy for the [Neuron AI PHP framework](https://docs.neuron-ai.dev).
## Requirements
- PHP: ^8.1
- Neuron: ^3.0
## Installation
Install the latest version of the package:
```
composer require neuron-core/graph-retrieval
```
## How to use GraphRetrieval in your agent
Return an instance of `GraphRetrieval` from the RAG method `retrieval()`:
```php
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?
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)
[](https://www.youtube.com/watch?v=oSA1bP_j41w)