Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Automating Knowledge Graph Creation & Enabling Efficient Graph RAG with ApertureDB and Gemini

This repo contains notebooks, in parts, showing how to automatically create knowledge graphs from your data and perform graph RAG.

  • The Cloud version notebooks involve signing up to ApertureDB Cloud and creating a managed DB instance there to which you can remotely connect.
  • The local version notebooks involve using udocker (a library which allows running Docker images in constrained environments like Colab notebooks) to create DB instances locally which you can persist in Google Drive if you want - mitigating the need to sign up to ApertureD Cloud.

Besides the initial DB setup and connection, the notebooks - and thereby the core functionality - are exactly the same.

Part 1: Automating Knowledge Graph Creation with ApertureDB and Gemini

Part 1.1:

Use an LLM (Gemini 2.5 in this case) to intelligently extract entities from your data source, and ingest them into ApertureDB.

Part 1.2:

Use an LLM (Gemini 2.5 in this case) to intelligently extract relationships between entities and ingest them into ApertureDB, creating a complete knowledge graph.

Notebook (contains parts 1.1 and 1.2 both):

Graph RAG with ApertureDB and Gemini

Part 3: Building the Semantic Layer

Creating Descriptors (embeddings) of knowledge graph entities using Gemini embeddngs, ingesting them into a DescriptorSet (vector index), and connecting them with the knowledge graph in ApertureDB.

Resources:

Part 4: Implementing and Evaluating Graph RAG

Implement graph RAG using our knowledge graph and compare it with vanilla RAG, using numerical + LLM-as-a-Judge evals through Gemini.

Resources:

Sample Data

In case you don't have any sample PDF lying around, or do not want to use your own, you can use one the sample data PDFs from the repo to test out the notebooks.

About

Automating Knowledge Graph Creation and Graph RAG with ApertureDB & Gemini

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages