Skip to main content

Build upon GraphRAG, provide a quick solution setup and is part of the overall Qredence System like AgenticFleet and FleetUI

Project description

Overview

image

GraphFleet is based for now from the great GraphRAG from Microsoft is an advanced implementation of GraphRAG (Retrieval Augmented Generation using Graph structures), designed to enhance large language models' ability to reason about complex information and private datasets. GraphFleet will gradually adopts its own path to fullfilled our roadmap at Qredence.

Buy Me A Coffee

GraphFleet

GraphFleet uses knowledge graphs to provide substantial improvements in question-and-answer performance when reasoning about complex information. It addresses limitations of traditional RAG approaches by:

  • Connecting disparate pieces of information through shared attributes.
  • Structured, hierarchical approach to Retrieval Augmented Generation
  • Knowledge graph extraction from raw text
  • Community hierarchy building
  • Hierarchical summarization
  • Enhanced reasoning capabilities for LLMs on private datasets
  • Improve the structure of the overall repository.
  • Add our dedicated prompts for the indexing & queriying, more vectordatabase
  • Add more notebooks
  • Provide an FleetUI Design Kit and a quicker way of starting GraphFleet locally
  • Add integrations (Langchain, Flowise, Langflow, Microsoft Fabric, Composio, Neo4j..)
  • Access GraphFleet through a secure and enterprise ready Azure Cloud hosting version. Join the waitlist now
  • And way more... 👀

Key Features

  • Structured, hierarchical approach to Retrieval Augmented Generation
  • Knowledge graph extraction from raw text
  • Community hierarchy building
  • Hierarchical summarization
  • Enhanced reasoning capabilities for LLMs on private datasets

Getting Started

Prerequisites

  • Python 3.10+
  • Poetry (for dependency management)

Installation

  1. Clone the repository:
git clone https://github.com/Qredence/GraphFleet.git
cd GraphFleet
  1. Install dependencies using Poetry:
poetry shell
poetry install .

Usage

  1. Setting up your settings:
cd graphfleet
  • Set up the necessary environment variables in the .env.example file and change the name to .env. The required ones being :
# Base LLM Settings
GRAPHRAG_API_KEY="your_api_key"
GRAPHRAG_API_BASE="http://<domain>.openai.azure.com" # For Azure OpenAI Users
GRAPHRAG_API_VERSION="api_version" # For Azure OpenAI Users

# Text Generation Settings
GRAPHRAG_LLM_TYPE="azure_openai_chat" # or openai_chat
GRAPHRAG_LLM_DEPLOYMENT_NAME="gpt-4-turbo-preview"
GRAPHRAG_LLM_MODEL_SUPPORTS_JSON=True

# Text Embedding Settings
GRAPHRAG_EMBEDDING_TYPE="azure_openai_embedding" # or openai_embedding
GRAPHRAG_LLM_DEPLOYMENT_NAME="text-embedding-3-small"

# Data Mapping Settings
GRAPHRAG_INPUT_TYPE="text"
  • Open settings.yaml and fill the parameter you wish to fill according to your needs.
  1. Run the indexing process:
python -m graphrag.index --root ./graphfleet
  1. Perform queries in local mode or global mode depending on your usecase learn more in the GraphRAG documentation: For local query mode :
python -m graphrag.query --root ./graphfleet --method local "What are the key features of GraphRAG ??"

For Global query mode :

python -m graphrag.query --root ./graphfleet --method global "What are the top main features of GraphRAG"

Star History

Star History Chart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphfleet-0.1.2.tar.gz (10.2 MB view hashes)

Uploaded Source

Built Distribution

graphfleet-0.1.2-py3-none-any.whl (10.5 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page