aws-samples / aws-samples/Serverless-Retrieval-Augmented-Generation-RAG-on-AWS
Feature: Introducing Kúzu graph database for extra-planar relationships
- Dominant language
- JavaScript
- Stars
- 93
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
[Kúzu](https://kuzudb.com/) is an embedded graph database. We want to explore graph-RAG capabilites to include more relevant information when retrieving semantically.
A good MVP for this would be mapping obvious relationships at ingestion that we cannot store semantically as vectors, for example
```
page -> next() : page
page -> previous() : page
page -> belongsToDocument() : document
page -> sectionStartsAt() : page
page -> sectionEndsAt() : page
document -> relatesToDocument() : document[]
document -> belongsToCollection() : document[]
document -> abstract() : string
```
and at semantic retrieval use the relationships mapped for the retrieved vectors to provide additonal context or exclude other vectors from context placement if they are not related to the most relevant collection. Probably using them in the context of re-ranking.
Contributor guide
Assessment
This issue has not been assessed yet.