def METHOD_NAME(self, embeddings, text):
    dist, indx = self.vector.search(np.asarray([embeddings], dtype=np.float32), k=self.component_config.get("top_k", 5))
    messages = [
        {"role": "system", "content": self.system_prompt},
    ]
    context = "\n\n".join( f"text: {self.data[i]['text']}\nintent: {self.data[i]['intent']}" for i in indx[0])
    messages.append({"role": "user", "content": f"{self.system_prompt}\n\n{context}\n\ntext: {text}"})
    return messages