Versions in this module Expand all Collapse all v0 v0.5.1 Jun 12, 2025 Changes in this version type FilesSource + Files []string v0.5.0 Jun 10, 2025 Changes in this version + func ErrColumnNameOrIdEmpty() error + func ErrColumnNotFound(input string) error + func ErrTableNameOrIdEmpty() error + func ErrTableNotFound(input string) error + type AISource struct + Options []string + Prompt string + func (as *AISource) Init(ctx context.Context, aiSrv ai.AiService, column *ent.TableColumn, model string) error + func (as *AISource) Next(ctx context.Context, idx int) (*schema.CellValue, error) + func (as *AISource) Total() int + type BasicSource struct + Name string + Type string + type CsvSource struct + Column string + ContextColumns []string + Kaggle string + Paths []string + RandomCSV *csvindexer.CSVIndexer + 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 struct + Paths []string + func (f *FilesSource) Init(ctx context.Context, logger *zap.SugaredLogger, dir string) error + func (f *FilesSource) Next(ctx context.Context, idx int) (*schema.CellValue, error) + func (f *FilesSource) Total() int + type Huggingface struct + Config string + Dataset string + Split string + type Indexer struct + func NewIndexer(source Source, column *ent.TableColumn) *Indexer + func (i *Indexer) Next(ctx context.Context) (*schema.CellValue, error) + type InvalidSource struct + func (e *InvalidSource) Error() string + type LinkedSource struct + Table string + 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 struct + File string + Options []string + func (ls *ListSource) Init(ctx context.Context, dir string) error + func (ls *ListSource) Next(ctx context.Context, idx int) (*schema.CellValue, error) + func (ls *ListSource) Total() int + type ParquetSource struct + Column string + ContextColumns []string + Huggingface *Huggingface + Paths []string + 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 interface + Next func(ctx context.Context, idx int) (*schema.CellValue, error) + Total func() int + func ValidateSource(ctx context.Context, raw json.RawMessage, db *ent.Client) (Source, error)