Skip to content

Latest commit

 

History

History
 
 

README.md

Using Amazon Neptune with the Strands Agent SDK

Amazon Neptune is a fully managed graph database service by Amazon Web Services (AWS). It's designed to store and query billions of relationships with low latency, making it suitable for applications that rely on highly connected datasets.

This directory contains several examples of how to use Strands Agent SDK with Amazon Neptune.

Within this directory there are several example Python files:

architecture

Feature Description
Agent Structure Single-agent architecture
Native Tools use_aws
MCP Servers Neptune Query, Neptune Memory. Perplexity Ask MCP Server
Model Provider Amazon Bedrock

Getting started

  1. Install uv.
  2. Configure AWS credentials, follow instructions here.
  3. Create a .env file using .env.template

Sample Prompts

Run the example using uv run <SELECT EXAMPLE FILE TO RUN> <PROMPT>.

  • uv run use_aws_example.py "Run this query: MATCH (n) RETURN n LIMIT 10"

  • uv run query_mcp_example.py "Find me a flight from Seattle to New York that goes through Chicago?"

  • uv run memory_kg_example.py "I work on the Amazon Neptune team. I am currently building and testing MCP servers with the Strands Agent SDK to show how you can Amazon Neptune with an agent framework to store memories in the form of a knowledge graph. I am interested in what key considerations I should take into account?"