Class: Aws::Context::Types::Citation

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-context/lib/aws-sdk-context/types.rb

Overview

Maps a span of the answer to the entities that support it. The span is answer[startIndex:endIndex].

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#end_index ⇒ Integer

The character offset in answer where the cited span ends (exclusive).

Returns:

  • (Integer)


1209
1210
1211
1212
1213
1214
1215
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1209

class Citation < Struct.new(
  :start_index,
  :end_index,
  :references)
  SENSITIVE = []
  include Aws::Structure
end

#references ⇒ Array<Types::Reference>

The entities in retrievedContext that support the span, referenced by identity.

Returns:



1209
1210
1211
1212
1213
1214
1215
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1209

class Citation < Struct.new(
  :start_index,
  :end_index,
  :references)
  SENSITIVE = []
  include Aws::Structure
end

#start_index ⇒ Integer

The character offset in answer where the cited span begins.

Returns:

  • (Integer)


1209
1210
1211
1212
1213
1214
1215
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1209

class Citation < Struct.new(
  :start_index,
  :end_index,
  :references)
  SENSITIVE = []
  include Aws::Structure
end