GraphitiNet 0.1.0

dotnet add package GraphitiNet --version 0.1.0
                    
NuGet\Install-Package GraphitiNet -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GraphitiNet" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GraphitiNet" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="GraphitiNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GraphitiNet --version 0.1.0
                    
#r "nuget: GraphitiNet, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GraphitiNet@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GraphitiNet&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=GraphitiNet&version=0.1.0
                    
Install as a Cake Tool

GraphitiNet

Temporal knowledge graphs for AI agents, in .NET. graphiti-net is a C# rewrite of Graphiti v0.31.2, the open-source Python library from Zep. It turns chat messages, documents and JSON into a knowledge graph an agent can search. Each fact records when it was true and which episode it came from.

This package holds the library: ingestion, hybrid search, the OpenAI and Microsoft.Extensions.AI providers, and an in-memory graph driver. For production storage, add GraphitiNet.PostgreSql.

Preview. The API follows Python Graphiti's and may still change before 1.0.

Graphiti is a brand of Zep Software, Inc. graphiti-net is an independent, community-built rewrite. It is not affiliated with, endorsed by, or sponsored by Zep Software, Inc.

Install

dotnet add package GraphitiNet

Quickstart

Set OPENAI_API_KEY, then:

using GraphitiNet;
using GraphitiNet.Driver.InMemory;
using GraphitiNet.Llm;
using GraphitiNet.Models;
using GraphitiNet.Search;

await using var graphiti = new Graphiti(
    new InMemoryGraphDriver(),
    new OpenAIClient(new LLMConfig(model: "gpt-5-mini", smallModel: "gpt-5-mini")));
await graphiti.BuildIndicesAndConstraintsAsync();

await graphiti.AddEpisodeAsync(
    name: "Freakonomics Radio 0",
    episodeBody: "Kamala Harris is the Attorney General of California. " +
                 "She was previously the district attorney for San Francisco.",
    sourceDescription: "podcast transcript",
    referenceTime: DateTimeOffset.UtcNow,
    source: EpisodeType.Text);

// Facts: hybrid search (similarity and keywords, fused with RRF).
foreach (var fact in await graphiti.SearchAsync("Who was the California Attorney General?"))
{
    Console.WriteLine(fact.Fact);
}

// Entities: a search recipe.
var nodes = await graphiti.SearchAsync("California", SearchConfigRecipes.NodeHybridSearchRrf with { Limit = 5 });
foreach (var node in nodes.Nodes)
{
    Console.WriteLine($"{node.Name}: {node.Summary}");
}

Any Microsoft.Extensions.AI IChatClient and IEmbeddingGenerator work too, through ChatClientLLMClient and EmbeddingGeneratorEmbedder.

Learn more

Licence

Apache-2.0. Parts are translated from Graphiti's Python source, prompts and tests; see NOTICE and THIRD-PARTY-NOTICES.md in this package. "Graphiti" and "Zep" are trademarks of Zep Software, Inc.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on GraphitiNet:

Package Downloads
AbpAgent.Graphiti

AbpAgent.Graphiti: agents' memory as a temporal knowledge graph, with graphiti-net on PostgreSQL and pgvector. Each note an agent keeps is read into the things it names and the facts between them; recall searches them, showing a fact only to people who may read every note it came from.

GraphitiNet.PostgreSql

PostgreSQL storage for graphiti-net through EF Core, with pgvector for vector search and BM25 keyword search in SQL.

GraphitiNet.SqlServer

SQL Server 2025 and Azure SQL storage for graphiti-net through EF Core, with the native vector type for vector search and BM25 keyword search. No graph database needed.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 305 11/13/2026