Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaissIndex ¶
type FaissIndex struct { Id uuid.UUID `json:"id" yaml:"id"` Title string `json:"title,omitempty" yaml:"title,omitempty"` UtcTime time.Time `json:"-" yaml:"-"` Created int64 `json:"created" yaml:"created"` Sources []Source `json:"sources" yaml:"sources"` }
func NewFaissIndex ¶
func NewFaissIndex(sources []Source) (index *FaissIndex, err error)
func (*FaissIndex) SaveYaml ¶
func (index *FaissIndex) SaveYaml(fp string) (err error)
func (*FaissIndex) Uuid ¶
func (index *FaissIndex) Uuid() string
Click to show internal directories.
Click to hide internal directories.