Similarity search for a query string using the configured index.
:param query: Query text to embed and search. :type query: str :param k: Number of most similar documents. :type k: int
column names a JSONB key (string metadata_columns) or a configured
metadata column (list metadata_columns) and is never treated as SQL;
operator and cast are checked against fixed allowlists. A
psycopg.sql.Composable column is inserted as trusted SQL, so never
build one from untrusted input.:return: Top-k documents. :rtype: list[Document]