repository

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGraphRepository

func NewGraphRepository(
	graphStore core.GraphStore,
	vecStore core.VectorStore,
	docStore core.DocStore,
	embedder embedding.Provider,
	logger logging.Logger,
) core.GraphRepository

NewGraphRepository creates a GraphRepository with index synchronization.

func NewRepository

func NewRepository(
	docStore core.DocStore,
	vecStore core.VectorStore,
	embedder embedding.Provider,
	chunker core.SemanticChunker,
) core.Repository

NewRepository creates a generic Repository with index synchronization.

func NewTypedGraphRepository

func NewTypedGraphRepository[TNode core.Entity, TEdge core.Entity](repo core.GraphRepository) core.TypedGraphRepository[TNode, TEdge]

NewTypedGraphRepository creates a type-safe graph repository for custom types.

func NewTypedRepository

func NewTypedRepository[T core.Entity](repo core.Repository, collection string) core.TypedRepository[T]

NewTypedRepository creates a type-safe repository for a specific entity type.

Types

type SyncMode

type SyncMode int

SyncMode controls which stores are synchronized during graph operations.

const (
	// SyncGraphOnly only writes to GraphStore (default for backward compatibility)
	SyncGraphOnly SyncMode = iota
	// SyncGraphWithVector writes to GraphStore and generates vector embedding for nodes
	SyncGraphWithVector
	// SyncFull writes to GraphStore, VectorStore, and DocStore (for complete traceability)
	SyncFull
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL