utils

package
v0.7.21 Latest Latest
Warning

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

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

Documentation

Overview

Package utils provides helper utilities for retriever flows, including concurrent retrieval with callback instrumentation.

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. RetrieveTask represents a single retrieval job with its result or error.

Jump to

Keyboard shortcuts

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