| [ Web Proxy ] |
| Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.bigquery.ml.generate_embedding.html | [Back] [Original] |
Section Navigation
Generates text embedding using a BigQuery ML model.
See the BigQuery ML GENERATE_EMBEDDING function syntax for additional reference.
model (bigframes.ml.base.BaseEstimator or str) The model to use for text embedding.
input (Union[bigframes.pandas.DataFrame, str]) The DataFrame or query to use for text embedding.
flatten_json_output (bool, optional) A BOOL value that determines the content of the generated JSON column.
task_type (str, optional) A STRING value that specifies the intended downstream application task. Supported values are: - RETRIEVAL_QUERY - RETRIEVAL_DOCUMENT - SEMANTIC_SIMILARITY - CLASSIFICATION - CLUSTERING - QUESTION_ANSWERING - FACT_VERIFICATION - CODE_RETRIEVAL_QUERY
output_dimensionality (int, optional) An INT64 value that specifies the size of the output embedding.
The generated text embedding.
Copyright 2019, Google.
Created using Sphinx 8.1.3.
Built with the PyData Sphinx Theme 0.19.0.
| Web Proxy Viewer | New URL | Original Page |