Documentation
¶
Overview ¶
Package index prepares and embeds source-bound documents before sending precomputed records to a native index. The encoder and database need not share a transaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination interface {
vectorstore.Upserter
CheckDocuments(context.Context, vectorstore.SpaceID, []*document.Document) error
}
Destination checks provider-specific input constraints before model I/O. Upsert must still validate the current collection and the returned coordinates.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func NewWriter ¶
func NewWriter(config WriterConfig) (*Writer, error)
type WriterConfig ¶
type WriterConfig struct {
Destination Destination
Encoder *vector.Encoder
Formatter document.Formatter
Batching tokenizer.BatchConfig
}
Click to show internal directories.
Click to hide internal directories.