RagQuery(mapping=None, *, ignore_unknown_fields=False, **kwargs)A query to retrieve relevant contexts.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
text |
str
Optional. The query in text format to get relevant contexts. This field is a member of oneof_ query.
|
similarity_top_k |
int
Optional. The number of contexts to retrieve. |
ranking |
google.cloud.aiplatform_v1beta1.types.RagQuery.Ranking
Optional. Configurations for hybrid search results ranking. |
rag_retrieval_config |
google.cloud.aiplatform_v1beta1.types.RagRetrievalConfig
Optional. The retrieval config for the query. |
Classes
Ranking
Ranking(mapping=None, *, ignore_unknown_fields=False, **kwargs)Configurations for hybrid search results ranking.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Methods
RagQuery
RagQuery(mapping=None, *, ignore_unknown_fields=False, **kwargs)A query to retrieve relevant contexts.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields