File: types.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (125 lines) | stat: -rw-r--r-- 3,879 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	smithydocument "github.com/aws/smithy-go/document"
	"time"
)

// Sets additional capacity units configured for your rescore execution plan. A
// rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for
// provisioning the Rescore API. You can add and remove capacity units to fit your
// usage requirements.
type CapacityUnitsConfiguration struct {

	// The amount of extra capacity for your rescore execution plan. A single extra
	// capacity unit for a rescore execution plan provides 0.01 rescore requests per
	// second. You can add up to 1000 extra capacity units.
	//
	// This member is required.
	RescoreCapacityUnits *int32

	noSmithyDocumentSerde
}

// Information about a document from a search service such as OpenSearch (self
// managed). Amazon Kendra Intelligent Ranking uses this information to rank and
// score on.
type Document struct {

	// The identifier of the document from the search service.
	//
	// This member is required.
	Id *string

	// The original document score or rank from the search service. Amazon Kendra
	// Intelligent Ranking gives the document a new score or rank based on its
	// intelligent search algorithms.
	//
	// This member is required.
	OriginalScore *float32

	// The body text of the search service's document.
	Body *string

	// The optional group identifier of the document from the search service.
	// Documents with the same group identifier are grouped together and processed as
	// one document within the service.
	GroupId *string

	// The title of the search service's document.
	Title *string

	// The body text of the search service's document represented as a list of tokens
	// or words. You must choose to provide Body or TokenizedBody . You cannot provide
	// both.
	TokenizedBody []string

	// The title of the search service's document represented as a list of tokens or
	// words. You must choose to provide Title or TokenizedTitle . You cannot provide
	// both.
	TokenizedTitle []string

	noSmithyDocumentSerde
}

// Summary information for a rescore execution plan. A rescore execution plan is
// an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore
// API.
type RescoreExecutionPlanSummary struct {

	// The Unix timestamp when the rescore execution plan was created.
	CreatedAt *time.Time

	// The identifier of the rescore execution plan.
	Id *string

	// The name of the rescore execution plan.
	Name *string

	// The current status of the rescore execution plan. When the value is ACTIVE , the
	// rescore execution plan is ready for use.
	Status RescoreExecutionPlanStatus

	// The Unix timestamp when the rescore execution plan was last updated.
	UpdatedAt *time.Time

	noSmithyDocumentSerde
}

// A result item for a document with a new relevancy score.
type RescoreResultItem struct {

	// The identifier of the document from the search service.
	DocumentId *string

	// The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the
	// result.
	Score *float32

	noSmithyDocumentSerde
}

// A key-value pair that identifies or categorizes a rescore execution plan. A
// rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for
// provisioning the Rescore API. You can also use a tag to help control access to
// a rescore execution plan. A tag key and value can consist of Unicode letters,
// digits, white space, and any of the following symbols: _ . : / = + - @.
type Tag struct {

	// The key for the tag. Keys are not case sensitive and must be unique.
	//
	// This member is required.
	Key *string

	// The value associated with the tag. The value can be an empty string but it
	// can't be null.
	//
	// This member is required.
	Value *string

	noSmithyDocumentSerde
}

type noSmithyDocumentSerde = smithydocument.NoSerde