The retriever function used for search in the knowledge base

How should the retriever function used for search in the knowledge base be written? Is there any sample code

Hey @yu-qin
Thank you for your question.
Please refer our docs: Implementing a Custom Retriever - Agno

Let me know if you still have any questions, Happy to help