utils

package
v0.3.7-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurrentRetrieveWithCallback

func ConcurrentRetrieveWithCallback(ctx context.Context, tasks []*RetrieveTask)

ConcurrentRetrieveWithCallback concurrently retrieves documents with callback.

Types

type RetrieveTask

type RetrieveTask struct {
	Name            string
	Retriever       retriever.Retriever
	Query           string
	RetrieveOptions []retriever.Option
	Result          []*schema.Document
	Err             error
}

RetrieveTask is a task for retrieving documents.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL