retriever

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSKendraOptions

type AWSKendraOptions struct {
	// Number of documents to query for
	K int

	// Languagecode used for querying.
	LanguageCode string
}

type AWSKendraRetriever

type AWSKendraRetriever struct {
	// contains filtered or unexported fields
}

func New

func New(client KendraClient, index string, optFns ...func(o *AWSKendraOptions)) *AWSKendraRetriever

func (*AWSKendraRetriever) GetRelevantDocuments

func (r *AWSKendraRetriever) GetRelevantDocuments(ctx context.Context, query string) ([]golc.Document, error)

type KendraClient added in v0.0.6

type KendraClient interface {
	Query(ctx context.Context, params *kendra.QueryInput, optFns ...func(*kendra.Options)) (*kendra.QueryOutput, error)
}

Jump to

Keyboard shortcuts

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