Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class RagRetrievalConfig.
Specifies the context retrieval config.
Generated from protobuf message google.cloud.aiplatform.v1.RagRetrievalConfig
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ top_k |
int
Optional. The number of contexts to retrieve. |
↳ filter |
RagRetrievalConfig\Filter
Optional. Config for filters. |
getTopK
Optional. The number of contexts to retrieve.
Returns | |
---|---|
Type | Description |
int |
setTopK
Optional. The number of contexts to retrieve.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getFilter
Optional. Config for filters.
Returns | |
---|---|
Type | Description |
RagRetrievalConfig\Filter|null |
hasFilter
clearFilter
setFilter
Optional. Config for filters.
Parameter | |
---|---|
Name | Description |
var |
RagRetrievalConfig\Filter
|
Returns | |
---|---|
Type | Description |
$this |