Class: TencentCloud::Es::V20250101::RunRerankRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Es::V20250101::RunRerankRequest
- Defined in:
- lib/v20250101/models.rb
Overview
RunRerank请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(modelname = nil, query = nil, documents = nil, topn = nil, returndocuments = nil) ⇒ RunRerankRequest
constructor
A new instance of RunRerankRequest.
Constructor Details
#initialize(modelname = nil, query = nil, documents = nil, topn = nil, returndocuments = nil) ⇒ RunRerankRequest
Returns a new instance of RunRerankRequest.
1032 1033 1034 1035 1036 1037 1038 |
# File 'lib/v20250101/models.rb', line 1032 def initialize(modelname=nil, query=nil, documents=nil, topn=nil, returndocuments=nil) @ModelName = modelname @Query = query @Documents = documents @TopN = topn @ReturnDocuments = returndocuments end |
Instance Attribute Details
#Documents ⇒ Object
1030 1031 1032 |
# File 'lib/v20250101/models.rb', line 1030 def Documents @Documents end |
#ModelName ⇒ Object
1030 1031 1032 |
# File 'lib/v20250101/models.rb', line 1030 def ModelName @ModelName end |
#Query ⇒ Object
1030 1031 1032 |
# File 'lib/v20250101/models.rb', line 1030 def Query @Query end |
#ReturnDocuments ⇒ Object
1030 1031 1032 |
# File 'lib/v20250101/models.rb', line 1030 def ReturnDocuments @ReturnDocuments end |
#TopN ⇒ Object
1030 1031 1032 |
# File 'lib/v20250101/models.rb', line 1030 def TopN @TopN end |
Instance Method Details
#deserialize(params) ⇒ Object
1040 1041 1042 1043 1044 1045 1046 |
# File 'lib/v20250101/models.rb', line 1040 def deserialize(params) @ModelName = params['ModelName'] @Query = params['Query'] @Documents = params['Documents'] @TopN = params['TopN'] @ReturnDocuments = params['ReturnDocuments'] end |