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, dir string) ([]string, error)
- func (cs *CsvSource) Init(ctx context.Context, 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) Total() int
- type Indexer
- type InvalidSource
- type LinkedSource
- 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) Total() int
- type ListSource
- 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"`
Column string `json:"column"`
ContextColumns []string `json:"context_columns"`
// contains filtered or unexported fields
}
func (*CsvSource) GetColumns ¶ added in v0.1.0
func (*CsvSource) NextLinked ¶ added in v0.0.9
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) NextLinked ¶ added in v0.0.8
func (*LinkedSource) Total ¶ added in v0.0.8
func (ls *LinkedSource) Total() int
Click to show internal directories.
Click to hide internal directories.