Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::RagRetrievalConfig.
Specifies the context retrieval config.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#filter
def filter() -> ::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Filter
Returns
- (::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Filter) — Optional. Config for filters.
#filter=
def filter=(value) -> ::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Filter
Parameter
- value (::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Filter) — Optional. Config for filters.
Returns
- (::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Filter) — Optional. Config for filters.
#ranking
def ranking() -> ::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Ranking
Returns
- (::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Ranking) — Optional. Config for ranking and reranking.
#ranking=
def ranking=(value) -> ::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Ranking
Parameter
- value (::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Ranking) — Optional. Config for ranking and reranking.
Returns
- (::Google::Cloud::AIPlatform::V1::RagRetrievalConfig::Ranking) — Optional. Config for ranking and reranking.
#top_k
def top_k() -> ::Integer
Returns
- (::Integer) — Optional. The number of contexts to retrieve.
#top_k=
def top_k=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. The number of contexts to retrieve.
Returns
- (::Integer) — Optional. The number of contexts to retrieve.