Documentation
¶
Index ¶
- Constants
- func ErrColumnNameOrIdEmpty() error
- func ErrColumnNotFound(input string) error
- func ErrTableNameOrIdEmpty() error
- func ErrTableNotFound(input string) error
- type AISource
- type CsvSource
- func (cs *CsvSource) GetColumns(ctx context.Context, logger *zap.SugaredLogger, dir string) ([]string, error)
- func (cs *CsvSource) GetLinkedCellValue(row []any, column string, contextColumns []string) *schema.CellValue
- func (cs *CsvSource) Init(ctx context.Context, logger *zap.SugaredLogger, dir string) error
- func (cs *CsvSource) Next(ctx context.Context, idx int) (*schema.CellValue, error)
- func (cs *CsvSource) NextLinked(ctx context.Context, idx int, column string, contextColumns []string) (*schema.CellValue, error)
- func (cs *CsvSource) Range(fn func(row []any) bool) error
- func (cs *CsvSource) Total() int
- type FilesSource
- type Huggingface
- type Indexer
- type InvalidSource
- type LinkedSource
- func (ls *LinkedSource) GetLinkedCellValue(row *ent.TableRow, column string, contextColumns []string) *schema.CellValue
- func (ls *LinkedSource) Init(ctx context.Context, db *ent.Client) error
- func (ls *LinkedSource) Next(ctx context.Context, idx int) (*schema.CellValue, error)
- func (ls *LinkedSource) NextLinked(ctx context.Context, idx int, column string, contextColumns []string) (*schema.CellValue, error)
- func (ls *LinkedSource) Range(fn func(row *ent.TableRow) bool)
- func (ls *LinkedSource) Total() int
- type ListSource
- type ParquetSource
- func (ps *ParquetSource) GetColumns(ctx context.Context, logger *zap.SugaredLogger, dir string) ([]string, error)
- func (ps *ParquetSource) GetLinkedCellValue(row map[string]any, column string, contextColumns []string) *schema.CellValue
- func (ps *ParquetSource) Init(ctx context.Context, hfClient huggingface.Client, logger *zap.SugaredLogger, ...) error
- func (ps *ParquetSource) Next(ctx context.Context, idx int) (*schema.CellValue, error)
- func (ps *ParquetSource) NextLinked(ctx context.Context, idx int, column string, contextColumns []string) (*schema.CellValue, error)
- func (ps *ParquetSource) Range(ctx context.Context, fn func(row map[string]any) bool) error
- func (ps *ParquetSource) Total() int
- type Source
Constants ¶
View Source
const OptionGenMaxTokens = 3000
Variables ¶
This section is empty.
Functions ¶
func ErrColumnNameOrIdEmpty ¶
func ErrColumnNameOrIdEmpty() error
func ErrColumnNotFound ¶
func ErrTableNameOrIdEmpty ¶
func ErrTableNameOrIdEmpty() error
func ErrTableNotFound ¶
Types ¶
type AISource ¶
type AISource struct {
Type string `json:"type"`
Prompt string `json:"prompt"`
Options []string `json:"options"`
}
type CsvSource ¶ added in v0.0.9
type CsvSource struct {
Type string `json:"type"`
Paths []string `json:"paths"`
Kaggle string `json:"kaggle"`
Column string `json:"column"`
ContextColumns []string `json:"context_columns"`
// contains filtered or unexported fields
}
func (*CsvSource) GetColumns ¶ added in v0.1.0
func (*CsvSource) GetLinkedCellValue ¶ added in v0.1.3
func (*CsvSource) NextLinked ¶ added in v0.0.9
type FilesSource ¶ added in v0.1.9
type FilesSource struct {
Type string `json:"type"`
Paths []string `json:"paths"`
// contains filtered or unexported fields
}
func (*FilesSource) Init ¶ added in v0.1.9
func (f *FilesSource) Init(ctx context.Context, logger *zap.SugaredLogger, dir string) error
func (*FilesSource) Total ¶ added in v0.1.9
func (f *FilesSource) Total() int
type Huggingface ¶ added in v0.1.2
type Indexer ¶ added in v0.0.8
type Indexer struct {
// contains filtered or unexported fields
}
func NewIndexer ¶ added in v0.0.8
func NewIndexer(source Source, column *ent.TableColumn) *Indexer
type InvalidSource ¶
type InvalidSource struct {
// contains filtered or unexported fields
}
func (*InvalidSource) Error ¶
func (e *InvalidSource) Error() string
type LinkedSource ¶
type LinkedSource struct {
Type string `json:"type"`
Table string `json:"table"`
// contains filtered or unexported fields
}
func (*LinkedSource) GetLinkedCellValue ¶ added in v0.1.3
func (*LinkedSource) NextLinked ¶ added in v0.0.8
func (*LinkedSource) Range ¶ added in v0.1.3
func (ls *LinkedSource) Range(fn func(row *ent.TableRow) bool)
func (*LinkedSource) Total ¶ added in v0.0.8
func (ls *LinkedSource) Total() int
type ListSource ¶
type ListSource struct {
Type string `json:"type"`
Options []string `json:"options"`
File string `json:"file,omitempty"`
}
func (*ListSource) Total ¶ added in v0.0.8
func (ls *ListSource) Total() int
type ParquetSource ¶ added in v0.1.2
type ParquetSource struct {
Type string `json:"type"`
Paths []string `json:"paths"`
Column string `json:"column"`
ContextColumns []string `json:"context_columns"`
Huggingface *Huggingface
// contains filtered or unexported fields
}
func (*ParquetSource) GetColumns ¶ added in v0.1.2
func (ps *ParquetSource) GetColumns(ctx context.Context, logger *zap.SugaredLogger, dir string) ([]string, error)
func (*ParquetSource) GetLinkedCellValue ¶ added in v0.1.3
func (*ParquetSource) Init ¶ added in v0.1.2
func (ps *ParquetSource) Init(ctx context.Context, hfClient huggingface.Client, logger *zap.SugaredLogger, dir string) error
func (*ParquetSource) NextLinked ¶ added in v0.1.2
func (*ParquetSource) Total ¶ added in v0.1.2
func (ps *ParquetSource) Total() int
Source Files
¶
Click to show internal directories.
Click to hide internal directories.