AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
RAGConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/EvaluationPrecomputedRagSourceConfig.h>
9#include <aws/bedrock/model/KnowledgeBaseConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
29class RAGConfig {
30 public:
31 AWS_BEDROCK_API RAGConfig() = default;
32 AWS_BEDROCK_API RAGConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCK_API RAGConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const KnowledgeBaseConfig& GetKnowledgeBaseConfig() const { return m_knowledgeBaseConfig; }
42 inline bool KnowledgeBaseConfigHasBeenSet() const { return m_knowledgeBaseConfigHasBeenSet; }
43 template <typename KnowledgeBaseConfigT = KnowledgeBaseConfig>
44 void SetKnowledgeBaseConfig(KnowledgeBaseConfigT&& value) {
45 m_knowledgeBaseConfigHasBeenSet = true;
46 m_knowledgeBaseConfig = std::forward<KnowledgeBaseConfigT>(value);
47 }
48 template <typename KnowledgeBaseConfigT = KnowledgeBaseConfig>
49 RAGConfig& WithKnowledgeBaseConfig(KnowledgeBaseConfigT&& value) {
50 SetKnowledgeBaseConfig(std::forward<KnowledgeBaseConfigT>(value));
51 return *this;
52 }
54
56
60 inline const EvaluationPrecomputedRagSourceConfig& GetPrecomputedRagSourceConfig() const { return m_precomputedRagSourceConfig; }
61 inline bool PrecomputedRagSourceConfigHasBeenSet() const { return m_precomputedRagSourceConfigHasBeenSet; }
62 template <typename PrecomputedRagSourceConfigT = EvaluationPrecomputedRagSourceConfig>
63 void SetPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT&& value) {
64 m_precomputedRagSourceConfigHasBeenSet = true;
65 m_precomputedRagSourceConfig = std::forward<PrecomputedRagSourceConfigT>(value);
66 }
67 template <typename PrecomputedRagSourceConfigT = EvaluationPrecomputedRagSourceConfig>
68 RAGConfig& WithPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT&& value) {
69 SetPrecomputedRagSourceConfig(std::forward<PrecomputedRagSourceConfigT>(value));
70 return *this;
71 }
73 private:
74 KnowledgeBaseConfig m_knowledgeBaseConfig;
75 bool m_knowledgeBaseConfigHasBeenSet = false;
76
77 EvaluationPrecomputedRagSourceConfig m_precomputedRagSourceConfig;
78 bool m_precomputedRagSourceConfigHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Bedrock
83} // namespace Aws
const EvaluationPrecomputedRagSourceConfig & GetPrecomputedRagSourceConfig() const
Definition RAGConfig.h:60
AWS_BEDROCK_API RAGConfig(Aws::Utils::Json::JsonView jsonValue)
void SetPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT &&value)
Definition RAGConfig.h:63
AWS_BEDROCK_API RAGConfig()=default
AWS_BEDROCK_API RAGConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
bool KnowledgeBaseConfigHasBeenSet() const
Definition RAGConfig.h:42
void SetKnowledgeBaseConfig(KnowledgeBaseConfigT &&value)
Definition RAGConfig.h:44
const KnowledgeBaseConfig & GetKnowledgeBaseConfig() const
Definition RAGConfig.h:41
bool PrecomputedRagSourceConfigHasBeenSet() const
Definition RAGConfig.h:61
RAGConfig & WithPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT &&value)
Definition RAGConfig.h:68
RAGConfig & WithKnowledgeBaseConfig(KnowledgeBaseConfigT &&value)
Definition RAGConfig.h:49
Aws::Utils::Json::JsonValue JsonValue