Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSKendra ¶ added in v0.0.10
type AWSKendra struct {
// contains filtered or unexported fields
}
func NewAWSKendra ¶ added in v0.0.10
func NewAWSKendra(client KendraClient, index string, optFns ...func(o *AWSKendraOptions)) *AWSKendra
type AWSKendraOptions ¶
type KendraClient ¶ added in v0.0.6
type KendraClient interface {
Query(ctx context.Context, params *kendra.QueryInput, optFns ...func(*kendra.Options)) (*kendra.QueryOutput, error)
}
type VectorStore ¶ added in v0.0.10
type VectorStore struct {
// contains filtered or unexported fields
}
func NewVectorStore ¶ added in v0.0.10
func NewVectorStore(vectorStore schema.VectorStore, optFns ...func(o *VectorStoreOptions)) *VectorStore
func (*VectorStore) GetRelevantDocuments ¶ added in v0.0.10
func (r *VectorStore) GetRelevantDocuments(ctx context.Context, query string) ([]schema.Document, error)
GetRelevantDocuments returns documents using the vector store.
type VectorStoreOptions ¶ added in v0.0.10
type VectorStoreOptions struct {
SearchType VectorStoreSearchType
}
type VectorStoreSearchType ¶ added in v0.0.10
type VectorStoreSearchType string
const (
VectorStoreSearchTypeSimilarity VectorStoreSearchType = "similarity"
)
Click to show internal directories.
Click to hide internal directories.