Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFragmentTables ¶
Types ¶
type Fragment ¶
type Fragment struct {
ID id.ID `gorm:"type:uuid;primaryKey"`
ActorID id.ID `gorm:"type:uuid;not null;index"`
SessionID id.ID `gorm:"type:uuid;not null;index"`
Content string `gorm:"type:text;not null"`
Metadata Metadata `gorm:"type:jsonb;not null;default:'{}'::jsonb"`
Embedding pgvector.Vector `gorm:"type:vector(1536)"`
Actor *Actor `gorm:"foreignKey:ActorID"`
Session *Session `gorm:"foreignKey:SessionID"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
type FragmentTable ¶
type FragmentTable string
const ( FragmentTableInteraction FragmentTable = "interaction" FragmentTablePersonality FragmentTable = "personality" FragmentTableInsight FragmentTable = "insight" FragmentTableTwitter FragmentTable = "twitter" )
type Metadata ¶
type Metadata map[string]interface{}
Metadata represents a JSON object stored in the database
Click to show internal directories.
Click to hide internal directories.