Documentation
¶
Index ¶
- type Index
- func (i *Index) AutoMigrate() error
- func (i *Index) Close() error
- func (i *Index) CreateDataset(ctx context.Context, dataset types.Dataset, opts *types.DatasetCreateOpts) error
- func (i *Index) DeleteDataset(ctx context.Context, datasetID string) error
- func (i *Index) DeleteDocument(ctx context.Context, documentID, datasetID string) error
- func (i *Index) DeleteFile(ctx context.Context, datasetID, fileID string) error
- func (i *Index) ExportDatasetsToFile(ctx context.Context, path string, ids ...string) error
- func (i *Index) FindFile(ctx context.Context, searchFile types.File) (*types.File, error)
- func (i *Index) FindFileByMetadata(ctx context.Context, dataset string, metadata types.FileMetadata, ...) (*types.File, error)
- func (i *Index) FindFilesByMetadata(ctx context.Context, dataset string, metadata types.FileMetadata, ...) ([]types.File, error)
- func (i *Index) GetDataset(ctx context.Context, datasetID string, opts *types.DatasetGetOpts) (*types.Dataset, error)
- func (i *Index) GetDocumentByID(ctx context.Context, documentID string) (*types.Document, error)
- func (i *Index) ImportDatasetsFromFile(ctx context.Context, path string) error
- func (i *Index) ListDatasets(ctx context.Context) ([]types.Dataset, error)
- func (i *Index) PruneFiles(ctx context.Context, datasetID string, pathPrefix string, keep []string) ([]types.File, error)
- func (i *Index) UpdateDataset(ctx context.Context, dataset types.Dataset) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
func (*Index) AutoMigrate ¶
func (*Index) CreateDataset ¶
func (*Index) DeleteDataset ¶
func (*Index) DeleteDocument ¶
func (*Index) DeleteFile ¶
func (*Index) ExportDatasetsToFile ¶
func (*Index) FindFileByMetadata ¶
func (*Index) FindFilesByMetadata ¶
func (*Index) GetDataset ¶
func (*Index) GetDocumentByID ¶
func (*Index) ImportDatasetsFromFile ¶
func (*Index) ListDatasets ¶
func (*Index) PruneFiles ¶
Click to show internal directories.
Click to hide internal directories.