🔒 Log in to see the prompt →
## Help me create the code for an AI chatbot like utility on the Hugging Face Spaces as a new demo
Here's some details about the way I want this utility to work:
- This chatbot is for the following purpose:
- It is a question answering chatbot to answer the user's questions against a GitHub repository.
- Input a GitHub repository, the utility needs to download the repository and create embeddings against the code.
- Repos need to be public and it should be a Hugging Face Spaces demo.
### Steps to create the chatbot:
1. the chatbot should understand how your repository works and what it's intended use is and it should figure this out by examining the code in the given away.
2. Choose a pre-trained model suitable for question answering.
3. Download the GitHub repository using the PyGitHub library.
4. Create embeddings against the code using a pre-trained embedding model.
5. Build the chatbot by writing code that extracts the question, searches the repository for the answer using the embeddings, and returns the answer to the user.
6. use any Hugging Face resources to help the chatbot be more capable
7. use natural language processing to help the chatbot be more capable