SentenceTransformerModel.read_queries
- opensearch_py_ml.ml_models.SentenceTransformerModel.read_queries(self, read_path: str, overwrite: bool = False) DataFrame
Read the queries generated from the Synthetic Query Generator (SQG) model, unzip files to current directory within synthetic_queries/ folder, output as a dataframe
- Parameters:
read_path (string) – required, path to the zipped file that contains generated queries
overwrite (bool) – optional, synthetic_queries/ folder in current directory is to store unzip queries files. Default to set overwrite as false and if the folder is not empty, raise exception to recommend users to either clean up folder or enable overwriting is True
- Returns:
The dataframe of queries.
- Return type:
panda dataframe