Documentation ¶
Index ¶
- type IngestionFlow
- func (f *IngestionFlow) FillDefaults(filetype string, textsplitterOpts *textsplitter.TextSplitterOpts)
- func (f *IngestionFlow) Run(ctx context.Context, reader io.Reader) ([]vs.Document, error)
- func (f *IngestionFlow) SupportsFiletype(filetype string) bool
- func (f *IngestionFlow) Transform(ctx context.Context, docs []vs.Document) ([]vs.Document, error)
- type RetrievalFlow
- type RetrievalFlowOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngestionFlow ¶
type IngestionFlow struct { Filetypes []string Load documentloader.LoaderFunc Split textsplitter.SplitterFunc Transformations []dstypes.DocumentTransformer }
func NewDefaultIngestionFlow ¶
func NewDefaultIngestionFlow(filetype string, textsplitterOpts *textsplitter.TextSplitterOpts) IngestionFlow
func (*IngestionFlow) FillDefaults ¶
func (f *IngestionFlow) FillDefaults(filetype string, textsplitterOpts *textsplitter.TextSplitterOpts)
func (*IngestionFlow) SupportsFiletype ¶
func (f *IngestionFlow) SupportsFiletype(filetype string) bool
type RetrievalFlow ¶
type RetrievalFlow struct { QueryModifiers []querymodifiers.QueryModifier Retriever retrievers.Retriever Postprocessors []postprocessors.Postprocessor }
func (*RetrievalFlow) FillDefaults ¶
func (f *RetrievalFlow) FillDefaults(topK int)
func (*RetrievalFlow) Run ¶
func (f *RetrievalFlow) Run(ctx context.Context, store store.Store, query string, datasetIDs []string, opts *RetrievalFlowOpts) (*dstypes.RetrievalResponse, error)
type RetrievalFlowOpts ¶ added in v0.4.7
Click to show internal directories.
Click to hide internal directories.