Skip to content

gongwon-nayeon/neo4j-agent-memory-tutorial

Repository files navigation

Neo4j Agent Memory Tutorial

Quick Start

# 1. 패키지 설치
uv sync

# 2. .env 파일 설정
cp .env.example .env
# .env 파일을 편집하여 실제 키 입력

# 가상환경 활성화 (Windows)
.venv\Scripts\activate

# 가상환경 활성화 (macOS/Linux)
source .venv/bin/activate

python 01_memory_basics.py
python 02_add_entity_fact_preference.py
python 03_memory_agent_with_trace.py
python 04_query_traces.py

Prerequisites

  1. Neo4j Aura Database: Create free database at https://console.neo4j.io
    • Free tier is sufficient
    • Save the URI, Username, and Password provided during creation
  2. OpenAI API Key: Required for LLM and embeddings
  3. Tavily API Key: Required for web search functionality (https://tavily.com)

Neo4j Aura Setup

  1. Visit https://console.neo4j.io and login
  2. Click "New Instance" to create free database
  3. Copy information from provided .txt file to .env

References

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages