async def search(self, query: str) -> list:
        """
        Search the graph for relevant information based on a query.

        Args:
            query (str): The query string to match against data from the graph.

        """
        user = await cognee.modules.users.methods.get_default_user()
        return await cognee.search(
            query_type=cognee.api.v1.search.SearchType.GRAPH_COMPLETION,
            query_text=query,
            user=user,
        )

        Search the graph for relevant information based on a query.

        Args:
            query (str): The query string to match against data from the graph.

        
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/graph_rag.py