Documentation
¶
Overview ¶
internal/designmd/parse.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrandMeta ¶
type BrandMeta struct {
Vibe string `json:"vibe"`
Colors []string `json:"colors"`
BestFor string `json:"best_for"`
}
func ExtractMeta ¶
type IndexResult ¶
IndexResult summarizes an indexing run.
type Record ¶
type Record struct {
Brand string
Section string
FilePath string
StartLine int
BodyHash uint64
Embedding []float32
}
Record holds one design section embedding.
type SearchResult ¶
SearchResult is a single search hit.
type Section ¶
func SplitSections ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages design embeddings in PostgreSQL with pgvector (1024-dim).
func (*Store) EnsureSchema ¶
EnsureSchema creates the pgvector extension and design_embeddings table if needed. After creating the table it attempts to transfer ownership to CURRENT_USER (best-effort: warns instead of failing if the role is not the table owner — e.g. after a superuser pg_restore left design_embeddings owned by the restoring role).
Click to show internal directories.
Click to hide internal directories.