Documentation
¶
Index ¶
Constants ¶
View Source
const ( Version = "0.0.12" DefaultVectorSize = 768 )
Variables ¶
View Source
var ( ErrDBIsNotInitialized = errors.New("db is not initialized") ErrDBIsDifferentVersion = errors.New("db is different version") )
View Source
var InitSchema string
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Path string `json:"path"`
ReadOnly bool `json:"read_only"`
// VectorSize is the dimension of embedding vectors stored in _schema_* tables.
// Used for vector(N) in PostgreSQL and FLOAT[N] in DuckDB.
VectorSize int `json:"vector_size"`
// S3 for now only supports s3://
S3Region string `json:"s3_region"`
S3Key string `json:"s3_key"`
S3Secret string `json:"s3_secret"`
S3UseSSL bool `json:"s3_use_ssl"`
S3Endpoint string `json:"s3_endpoint"`
}
type Info ¶ added in v0.1.9
type Info struct {
Version string `json:"version"`
Type types.DataSourceType `json:"type"`
}
type SchemaTemplateParams ¶ added in v0.3.0
type SchemaTemplateParams struct {
VectorSize int
}
SchemaTemplateParams contains parameters passed to the schema.sql Go template.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) IsReadonly ¶
Click to show internal directories.
Click to hide internal directories.