Spaces:
Runtime error
Runtime error
File size: 1,490 Bytes
842143c d82789e 842143c d82789e 842143c d82789e 842143c d82789e 842143c d82789e 842143c d82789e 842143c d82789e 842143c d82789e 124eb9c 45505b5 124eb9c 45505b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# Buster, the QA documentation chatbot!
Buster is a question-answering chatbot that can be tuned to specific documentations. You can try it [here](https://huggingface.co/spaces/jerpint/buster), where it will answer questions about [🤗 Transformers](https://huggingface.co/docs/transformers/index).


## How does Buster work?
First, we parsed the documentation into snippets. For each snippet, we obtain an embedding by using the [OpenAI API](https://beta.openai.com/docs/guides/embeddings/what-are-embeddings).
Then, when a user asks a question, we compute its embedding, and find the snippets from the doc with the highest cosine similarity to the question.
Finally, we craft the prompt:
- The most relevant snippets from the doc.
- The engineering prompt.
- The user's question.
We send the prompt to the [OpenAI API](https://beta.openai.com/docs/api-reference/completions), and display the answer to the user!
### Currently used models
- For embeddings: "text-embedding-ada-002"
- For completion: "text-davinci-003"
### Livestream
For more information, you can watch the livestream where explain how buster works in detail!
- [Livestream recording](https://youtu.be/LB5g-AhfPG8)
- [Livestream notebook](https://colab.research.google.com/drive/1CosxSNod48KrkyBn5_vkeleb7u0CrBa6)
|