return ret
        ret = self.awadb_client.Delete(ids)
        return ret
[docs]    def update(
        self,
        ids: List[str],
        texts: Iterable[str],
        metadatas: Optional[List[dict]] = None,
        **kwargs: Any,
    ) -> List[str]:
        """Update the documents which have the specified ids.
        Args:
            ids: The id list of the updating embedding vector.
            texts: The texts of the updating documents.
            metadatas: The metadatas of the updating documents.
        Returns:
            the ids of the updated documents.
        """
        if self.awadb_client is None:
            raise ValueError("AwaDB client is None!!!")
        return self.awadb_client.UpdateTexts(
            ids=ids, text_field_name="embedding_text", texts=texts, metadatas=metadatas
        )
[docs]    def create_table(
        self,
        table_name: str,
        **kwargs: Any,
    ) -> bool:
        """Create a new table."""
        if self.awadb_client is None:
            return False
        ret = self.awadb_client.Create(table_name)
        if ret:
            self.using_table_name = table_name
        return ret
[docs]    def use(
        self,
        table_name: str,
        **kwargs: Any,
    ) -> bool:
        """Use the specified table. Don't know the tables, please invoke list_tables."""
        if self.awadb_client is None:
            return False
        ret = self.awadb_client.Use(table_name)
        if ret:
            self.using_table_name = table_name
        return ret
[docs]    def list_tables(
        self,