Documentation ¶
Index ¶
- type IngestionFlow
- func (f *IngestionFlow) FillDefaults(filetype string, textsplitterOpts *textsplitter.TextSplitterOpts) error
- 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 IngestionFlowGlobals
- 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 { Globals IngestionFlowGlobals Filetypes []string Load documentloader.LoaderFunc Splitter dstypes.TextSplitter Transformations []dstypes.DocumentTransformer }
func NewDefaultIngestionFlow ¶
func NewDefaultIngestionFlow(filetype string, textsplitterOpts *textsplitter.TextSplitterOpts) (IngestionFlow, error)
func (*IngestionFlow) FillDefaults ¶
func (f *IngestionFlow) FillDefaults(filetype string, textsplitterOpts *textsplitter.TextSplitterOpts) error
func (*IngestionFlow) SupportsFiletype ¶
func (f *IngestionFlow) SupportsFiletype(filetype string) bool
type IngestionFlowGlobals ¶ added in v0.4.8
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.