fake

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retriever

type Retriever struct {
	DocsToReturn []schema.Document
	ErrToReturn  error
}

Retriever is a mock retriever for testing purposes.

func NewRetriever

func NewRetriever() *Retriever

NewRetriever creates a new fake retriever.

func (*Retriever) GetRelevantDocuments

func (r *Retriever) GetRelevantDocuments(_ context.Context, _ string) ([]schema.Document, error)

GetRelevantDocuments returns the pre-configured documents and error.

Jump to

Keyboard shortcuts

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