Prepare a query for vector search based on the embedding type.
This function checks if the embedding is an AutoEmbeddings instance. If it is, the query is returned as-is (string) for server-side embedding. Otherwise, the query is embedded using the embedding model's embed_query method.