Header menu logo Nao

IGraphMemory Type

Interface for graph-based memory (knowledge graph)

Instance members

Instance member Description

this.AddRelationAsync

Full Usage: this.AddRelationAsync

Parameters:
Returns: Task<unit>
Modifiers: abstract

Add a relation between entities

arg0 : GraphRelation
Returns: Task<unit>

this.ExtractRelationsAsync

Full Usage: this.ExtractRelationsAsync

Parameters:
    text : string

Returns: Task<GraphRelation list>
Modifiers: abstract

Extract and store relations from text (via LLM or pattern matching)

text : string
Returns: Task<GraphRelation list>

this.GetByTypeAsync

Full Usage: this.GetByTypeAsync

Parameters:
    entityType : string

Returns: Task<GraphNode list>
Modifiers: abstract

Get all nodes of a given type

entityType : string
Returns: Task<GraphNode list>

this.QueryAsync

Full Usage: this.QueryAsync

Parameters:
Returns: Task<GraphTraversalResult>
Modifiers: abstract

Query the graph

arg0 : GraphQuery
Returns: Task<GraphTraversalResult>

this.RemoveNodeAsync

Full Usage: this.RemoveNodeAsync

Parameters:
    arg0 : string

Returns: Task<unit>
Modifiers: abstract

Remove a node and all its relations

arg0 : string
Returns: Task<unit>

this.RemoveRelationAsync

Full Usage: this.RemoveRelationAsync

Parameters:
    subject : string
    predicate : string
    object' : string

Returns: Task<unit>
Modifiers: abstract

Remove a specific relation

subject : string
predicate : string
object' : string
Returns: Task<unit>

this.UpsertNodeAsync

Full Usage: this.UpsertNodeAsync

Parameters:
Returns: Task<unit>
Modifiers: abstract

Add or update a node

arg0 : GraphNode
Returns: Task<unit>

Type something to start searching.