def test_search(self, node_embeddings: List[TextNode]) -> None:
        """Test end to end Vertex AI Vector Search."""
        # Add nodes to the Vertex AI Vector Search index
        vector_store = self.vector_store()
        vector_store.add(node_embeddings)

        # similarity search
        embed_model = VertexTextEmbedding(project=PROJECT_ID, location=REGION)
        query = "dark-wash denim jeans"
        query_embedding = embed_model.get_query_embedding(query)
        q = VectorStoreQuery(query_embedding=query_embedding, similarity_top_k=1)
        result = vector_store.query(q)
        assert result.nodes is not None and len(result.nodes) == 1
        assert (
            result.nodes[0].get_content(metadata_mode=MetadataMode.NONE)
            == node_embeddings[0].text
        )
        assert result.similarities is not None
Test end to end Vertex AI Vector Search.
llama-index-integrations/vector_stores/llama-index-vector-stores-vertexaivectorsearch/tests/test_vector_stores_vertexaivectorsearch.py