Home icon

Generate Gremlin queries using Amazon Bedrock models

Machine Learning Blog



This article discusses a novel approach to generating Gremlin queries using Amazon Bedrock models, specifically addressing the complexity of querying graph databases for non-technical users.

  • Developed a three-step methodology for converting natural language to Gremlin queries
  • Integrated graph knowledge and domain-specific context to improve query accuracy
  • Used LLM-based evaluation to assess query generation and execution
  • Tested the approach across 120 questions with two models
  • Achieved an overall query generation accuracy of 74.17%

The solution aims to help business analysts and data scientists interact with graph databases more easily by translating natural language queries into technical Gremlin queries, with promising results in accuracy and efficiency.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jul 3
2025
Amazon Neptune Graph Explorer Introduces Native Query Support for Gremlin and openCypher
Aug 1
2024
Import a fine-tuned Meta Llama 3 model for SQL query generation on Amazon Bedrock
Aug 2
2024
Query RDF graphs using SPARQL and property graphs using Gremlin with the Amazon Athena Neptune connector
Aug 8
2024
How Twilio generated SQL using Looker Modeling Language data with Amazon Bedrock

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.