No description
Find a file
2024-08-22 11:13:41 -07:00
.github Create dependabot.yml (#11) 2024-08-21 21:51:10 -07:00
core Create Bulk Add Episode for faster processing (#9) 2024-08-21 12:03:32 -04:00
examples/podcast move podcast to examples (#15) 2024-08-22 11:13:41 -07:00
tests feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
.env.example add nodes and edges 2024-08-13 14:35:43 -04:00
.gitignore feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
conftest.py feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
podcast_runner.py Create Bulk Add Episode for faster processing (#9) 2024-08-21 12:03:32 -04:00
podcast_transcript.txt Cleanup maintenance utilities + add podcast runner (#5) 2024-08-16 09:29:57 -04:00
poetry.lock feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
pyproject.toml feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
pytest.ini feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
README.md chore: Add readme, gitignore and poetry files 2024-08-13 14:50:17 -04:00
runner.py feat: Initial version of temporal invalidation + tests (#8) 2024-08-20 16:29:19 -04:00
SECURITY.md Create SECURITY.md (#10) 2024-08-21 21:51:23 -07:00
transcript_parser.py Cleanup maintenance utilities + add podcast runner (#5) 2024-08-16 09:29:57 -04:00

Graphiti (LLM generated readme)

Graphiti is a Python library for building and managing knowledge graphs using Neo4j and OpenAI's language models. It provides a flexible framework for processing episodes of information, extracting semantic nodes and edges, and maintaining a dynamic graph structure.

Features

  • Asynchronous interaction with Neo4j database
  • Integration with OpenAI's GPT models for natural language processing
  • Automatic extraction of semantic nodes and edges from episodic data
  • Temporal tracking of relationships and facts
  • Flexible schema management

Installation

(Add installation instructions here)

Quick Start

from graphiti import Graphiti

# Initialize Graphiti
graphiti = Graphiti("bolt://localhost:7687", "neo4j", "password")

# Process an episode
await graphiti.process_episode(
    name="Example Episode",
    episode_body="Alice met Bob at the coffee shop.",
    source_description="User input",
    reference_time=datetime.now()
)

# Retrieve recent episodes
recent_episodes = await graphiti.retrieve_episodes(last_n=5)

# Close the connection
graphiti.close()

Documentation

(Add link to full documentation when available)

Contributing

(Add contribution guidelines)

License

(Add license information)