GraphitiNet.PostgreSql 0.1.0

dotnet add package GraphitiNet.PostgreSql --version 0.1.0
                    
NuGet\Install-Package GraphitiNet.PostgreSql -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.PostgreSql" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GraphitiNet.PostgreSql" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="GraphitiNet.PostgreSql" />
                    
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.PostgreSql --version 0.1.0
                    
#r "nuget: GraphitiNet.PostgreSql, 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.PostgreSql@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.PostgreSql&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=GraphitiNet.PostgreSql&version=0.1.0
                    
Install as a Cake Tool

GraphitiNet.PostgreSql

PostgreSQL storage for graphiti-net, a C# rewrite of Python Graphiti. The graph lives in nine ordinary tables, through EF Core, with pgvector for vector search and BM25 keyword search in SQL, with the same tokenisation and ranking as upstream's Lucene indexes. No graph database is needed.

Preview. The API and the table layout 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.

Requirements

PostgreSQL 13 or later with the pgvector extension (0.5 or later). Most managed services offer it.

Install

dotnet add package GraphitiNet
dotnet add package GraphitiNet.PostgreSql

Quickstart

using GraphitiNet;
using GraphitiNet.Driver.PostgreSql;
using GraphitiNet.Llm;
using GraphitiNet.Models;

var driver = new PostgresDriver(
    "Host=localhost;Database=graphiti;Username=app;Password=...",
    new PostgresGraphOptions { Schema = "graphiti", EmbeddingDimension = 1024 }); // match your embedder

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

// Once, or at every start-up: creates the extension, schema, tables and indexes. Idempotent.
await graphiti.BuildIndicesAndConstraintsAsync();

await graphiti.AddEpisodeAsync(
    name: "note",
    episodeBody: "Alice moved from Berlin to Lisbon in March.",
    sourceDescription: "chat",
    referenceTime: DateTimeOffset.UtcNow,
    source: EpisodeType.Message,
    groupId: "tenant-1");

var facts = await graphiti.SearchAsync("Where does Alice live?", groupIds: ["tenant-1"]);

The tables can also live in your own DbContext (modelBuilder.AddGraphiti(options)) and your own EF Core migrations, with a schema name and table prefix of your choice.

Learn more

Licence

Apache-2.0. 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 (1)

Showing the top 1 NuGet packages that depend on GraphitiNet.PostgreSql:

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 257 11/13/2026