Calculate maximal marginal relevance.
Check if a string has multiple substrings. Args: s: The string to check *args: The substrings to check for in the string
Print a debug message if DEBUG is True. Args: s: The message to print
Get a named result from a query. Args: connection: The connection to the database query: The query to execute
StarRocks client configuration.
StarRocks vector store.
You need a pymysql python package, and a valid account
to connect to StarRocks.
Right now StarRocks has only implemented cosine_similarity function to
compute distance between two vectors. And there is no vector inside right now,
so we have to iterate all vectors and compute spatial distance.
For more information, please visit StarRocks official site StarRocks github