Versions in this module Expand all Collapse all v0 v0.1.6 May 4, 2026 v0.1.5 May 4, 2026 v0.1.4 May 4, 2026 v0.1.3 May 3, 2026 v0.1.2 May 3, 2026 v0.1.1 May 3, 2026 v0.1.0 Apr 26, 2026 Changes in this version type Store + func (s *Store) EntitiesForDocs(ctx context.Context, docIDs []string) ([]*Entity, error) + func (s *Store) Ping(ctx context.Context) error + func (s *Store) RelationshipsForEntityInDocs(ctx context.Context, entityID string, depth int, docIDs []string) ([]*Relationship, error) v0.0.3 Apr 23, 2026 v0.0.2 Apr 23, 2026 v0.0.1 Apr 23, 2026 Changes in this version + func CosineSimilarity(a, b []float32) float32 + func DecodeVector(b []byte) []float32 + func EncodeVector(v []float32) []byte + type Chunk struct + ChunkIndex int + Content string + DocID string + ID string + Metadata string + TokenCount int + type ChunkWithEmbedding struct + Chunk Chunk + Vector []float32 + type Claim struct + Claim string + DocID string + EntityID string + ID string + Status string + type Community struct + ID string + Level int + ParentID string + Rank int + Summary string + Title string + Vector []float32 + type Document struct + CanonicalID string + CreatedAt int64 + DocType string + FileHash string + ID string + IndexedMtime int64 + IsLatest bool + Path string + Structured string + Title string + UpdatedAt int64 + Version int + func (d *Document) CanonicalOrID() string + type Entity struct + CommunityID string + Description string + ID string + Name string + Rank int + Type string + Vector []float32 + type NoteHit struct + Key string + Rank float64 + Snippet string + Tags []string + Title string + type Relationship struct + Description string + DocID string + ID string + Predicate string + SourceID string + TargetID string + Weight float64 + type Stats struct + Chunks int + Claims int + Communities int + Documents int + Embeddings int + Entities int + Relationships int + type Store struct + func OpenForProject(dataDir, slug string) (*Store, error) + func (s *Store) AllChunkEmbeddings(ctx context.Context, model string) ([]ChunkWithEmbedding, error) + func (s *Store) AllCommunities(ctx context.Context) ([]*Community, error) + func (s *Store) AllDocuments(ctx context.Context) ([]*Document, error) + func (s *Store) AllEntities(ctx context.Context) ([]*Entity, error) + func (s *Store) AllRelationships(ctx context.Context) ([]*Relationship, error) + func (s *Store) BatchInsertChunks(ctx context.Context, chunks []*Chunk) error + func (s *Store) BatchInsertClaims(ctx context.Context, claims []*Claim) error + func (s *Store) BatchInsertCommunityMembers(ctx context.Context, communityID string, entityIDs []string) error + func (s *Store) BatchInsertRelationships(ctx context.Context, rels []*Relationship) error + func (s *Store) BatchUpdateEntityCommunities(ctx context.Context, assignments map[string]string) error + func (s *Store) BatchUpdateEntityRanks(ctx context.Context, ranks map[string]int) error + func (s *Store) BatchUpsertEmbeddings(ctx context.Context, model string, chunkIDs []string, vectors [][]float32) error + func (s *Store) BatchUpsertEntities(ctx context.Context, entities []*Entity) error + func (s *Store) ClaimsForEntity(ctx context.Context, entityID string) ([]*Claim, error) + func (s *Store) ClearCommunities(ctx context.Context) error + func (s *Store) Close() error + func (s *Store) CommunityMembers(ctx context.Context, communityID string) ([]*Entity, error) + func (s *Store) CountNotes(ctx context.Context) (int, error) + func (s *Store) DB() *sql.DB + func (s *Store) DeleteDocument(ctx context.Context, id string) (int64, error) + func (s *Store) DeleteNote(ctx context.Context, key string) error + func (s *Store) DistinctEmbeddingModels(ctx context.Context) ([]string, error) + func (s *Store) FindRelationships(ctx context.Context, fromID, toID, predicate string) ([]*Relationship, error) + func (s *Store) GetChunk(ctx context.Context, id string) (*Chunk, error) + func (s *Store) GetCommunity(ctx context.Context, id string) (*Community, error) + func (s *Store) GetDocument(ctx context.Context, id string) (*Document, error) + func (s *Store) GetDocumentByHash(ctx context.Context, hash string) (*Document, error) + func (s *Store) GetDocumentByPath(ctx context.Context, path string) (*Document, error) + func (s *Store) GetDocumentVersions(ctx context.Context, canonicalID string) ([]*Document, error) + func (s *Store) GetEntitiesByNames(ctx context.Context, names []string) (map[string]*Entity, error) + func (s *Store) GetEntity(ctx context.Context, id string) (*Entity, error) + func (s *Store) GetEntityByName(ctx context.Context, name string) (*Entity, error) + func (s *Store) GetStats(ctx context.Context) (*Stats, error) + func (s *Store) GraphFingerprint(ctx context.Context) (entities, relationships, communities int, err error) + func (s *Store) IndexNote(ctx context.Context, n *notes.Note) error + func (s *Store) InsertChunk(ctx context.Context, c *Chunk) error + func (s *Store) InsertClaim(ctx context.Context, c *Claim) error + func (s *Store) InsertCommunityMember(ctx context.Context, communityID, entityID string) error + func (s *Store) InsertRelationship(ctx context.Context, r *Relationship) error + func (s *Store) ListChunksByDoc(ctx context.Context, docID string) ([]*Chunk, error) + func (s *Store) ListClaims(ctx context.Context, status string, limit int) ([]*Claim, error) + func (s *Store) ListCommunities(ctx context.Context, level int) ([]*Community, error) + func (s *Store) ListDocuments(ctx context.Context, docType string, limit, offset int) ([]*Document, error) + func (s *Store) ListEntities(ctx context.Context, typ string, limit, offset int) ([]*Entity, error) + func (s *Store) RelationshipsForEntity(ctx context.Context, entityID string, depth int) ([]*Relationship, error) + func (s *Store) SearchNotes(ctx context.Context, query string, limit int) ([]NoteHit, error) + func (s *Store) SupersedeDocument(ctx context.Context, id string) error + func (s *Store) UpdateDocumentStructured(ctx context.Context, id, structured string) error + func (s *Store) UpdateEntityCommunity(ctx context.Context, entityID, communityID string) error + func (s *Store) UpdateEntityRank(ctx context.Context, entityID string, rank int) error + func (s *Store) UpsertCommunity(ctx context.Context, c *Community) error + func (s *Store) UpsertDocument(ctx context.Context, doc *Document) error + func (s *Store) UpsertEmbedding(ctx context.Context, chunkID, model string, vector []float32) error + func (s *Store) UpsertEntity(ctx context.Context, e *Entity) error