Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ID uuid.UUID `gorm:"type:uuid;primary_key;"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` }
Base contains common columns for all tables.
type Content ¶
type Content struct { Base Type int32 `json:"type"` Metadata datatypes.JSON Data string `json:"data"` NormalizedContent []NormalizedContent `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE"` LocatedContent []LocatedContent `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE"` }
type LocatedContent ¶
type LocatedContent struct { Base Data *string `json:"data"` BucketData *string `json:"bucket_data"` ContentID uuid.UUID Content Content `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE"` }
LocatedContent is for content that must be located in a specific place, such as a URL. For larger content, data will be set to a location in a bucket.
type NormalizedContent ¶
type ProcessedReference ¶
type ProcessedReference struct { Base URL string `json:"url" gorm:"uniqueIndex"` Title string `json:"title"` Content string `json:"content"` NormalizedContent string `json:"normalized_content"` ContentType string `json:"content_type"` SuccessfulFetch bool `json:"successful_fetch"` ReferenceEmbeddings []ReferenceEmbedding }
type ReferenceEmbedding ¶
Click to show internal directories.
Click to hide internal directories.