Google Cloud Ai Platform V1 Client - Class RagQuery (1.18.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class RagQuery.

A query to retrieve relevant contexts.

Generated from protobuf message google.cloud.aiplatform.v1.RagQuery

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ text
string

Optional. The query in text format to get relevant contexts.

↳ rag_retrieval_config
RagRetrievalConfig

Optional. The retrieval config for the query.

getText

Optional. The query in text format to get relevant contexts.

Returns
Type
Description
string

hasText

setText

Optional. The query in text format to get relevant contexts.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getRagRetrievalConfig

Optional. The retrieval config for the query.

Returns
Type
Description

hasRagRetrievalConfig

clearRagRetrievalConfig

setRagRetrievalConfig

Optional. The retrieval config for the query.

Parameter
Name
Description
Returns
Type
Description
$this

getQuery

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: