Documentation
¶
Index ¶
- func NewGraphRepository(graphStore core.GraphStore, vecStore core.VectorStore, docStore core.DocStore, ...) core.GraphRepository
- func NewRepository(docStore core.DocStore, vecStore core.VectorStore, embedder embedding.Provider, ...) core.Repository
- func NewTypedGraphRepository[TNode core.Entity, TEdge core.Entity](repo core.GraphRepository) core.TypedGraphRepository[TNode, TEdge]
- func NewTypedRepository[T core.Entity](repo core.Repository, collection string) core.TypedRepository[T]
- type SyncMode
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 )
Click to show internal directories.
Click to hide internal directories.