BotSharp/docs/knowledge-base/build-qa-bot.md
2023-08-14 12:12:22 -05:00

14 lines
578 B
Markdown

# Build Q&A Bot
## 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)