# Similarity Search After we have learned the concepts of `Text Embedding` and `Vector Database`, we can start to use BotSharp to actually build an LLM-based knowledge base question system. Below we will walk through how to use an existing PDF document to make a Q&A chatbot. ## Feed knowledge Use the feed knowledge interface to feed knowledge into the database. Before that, you need to create an Agent to manage the Chatbot, and the Agent's `id` is needed in subsequent operations. `http://localhost:5500/knowledge/{agentId}`, You can add `startPageNum` and `endPageNum` to select useful parts of the document. ![Alt text](assets/feed_knowledge_pdf.png) ## Retrieve knowledge After you have finished inputting knowledge, you can start asking related questions with your AI Assistant. ![Alt text](assets/feed_knowledge_answer.png)