def category_retrieve(self, category: str, query: QueryType) -> List[NodeWithScore]:
        """Updates the alpha and retrieves results for a query using the provided category and query. If no LLM is provided, the default alpha value will be used."""
        alpha = self.matrix.get_alpha(category)
        self.retriever._alpha = (
            alpha  # updates alpha according to classification of query
        )

        return self.retriever.retrieve(str_or_query_bundle=query)
Updates the alpha and retrieves results for a query using the provided category and query. If no LLM is provided, the default alpha value will be used.
llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/base.py