Building a Q&A Chatbot using GPT and embeddings

  Рет қаралды 26,507

Jeremy Pinto

Jeremy Pinto

Жыл бұрын

This livestream explains how to build Buster 🤖, a chatbot that answers questions related to the Hugging Face transformers library while citing its sources.
** LINKS **
Talk to Buster: huggingface.co/spaces/jerpint...
Github: github.com/jerpint/buster
Notebook: colab.research.google.com/dri...
In this tutorial we explain the 3 main ingredients necessary to make Buster work:
1) Collect data from the documentation
2) Build a document retrieval system and rank the most relevant sources
3) Generate text based on a user's question and answer the question

Пікірлер: 23
@markgarrett2971
@markgarrett2971 Жыл бұрын
So many questions and ideas! Thanks for this!
@rvdjc
@rvdjc Жыл бұрын
Thank you for the amazing session!
@WhatsAI
@WhatsAI Жыл бұрын
Amazing tutorial, thanks Jeremy!
@venividicredi4993
@venividicredi4993 Жыл бұрын
Great info thanks. Love that buster started doing his own research (though appreciate why that might complicate integrity testing of the model)!
@kishangovind8499
@kishangovind8499 Жыл бұрын
Many many thanks and I wish you all the very best for your youtube chanel. Keep creating the video and help us learn. Could you next time show how to create a end-to-end deep learning model and deploy it
@jerpint
@jerpint Жыл бұрын
what kind of model would you want me to deploy?
@cocoarecords
@cocoarecords Жыл бұрын
fucking what i needed, thanks a ton. Subbed & liked
@firasnacef001
@firasnacef001 Жыл бұрын
Thank you for the detailed process. Do you think the model can be finetuned to a language that chatgpt doesn't fully understand yet? (Let's say dialects of chinese or Arabic for instance, but written in latin characters). Does this method create a new vector space representation that will enable the model to understand this new language based on the input data? Or does it have to understand the input language first in order to generate the proper responses on which it will be trained?
@jerpint
@jerpint Жыл бұрын
there's a clear 2 step process in this solution: generating embeddings, and generating a response. To generate embeddings in a new language, the model has to have been trained on that language. You can definitely fine-tune models on other languages to do your retrieval. The generation part is trickier, because it requires GPT which can't be finetuned, but there are more and more clones popping up that allow you to finetune
@LedZeppelinThe
@LedZeppelinThe Жыл бұрын
Is there a way to integrate this to Bubble?
@ajithshenoy5566
@ajithshenoy5566 Жыл бұрын
Hey Jeremy , did you figure out why the "Out of Scope" prompt wasn't working?
@jerpint
@jerpint Жыл бұрын
never figured out, hard to say with openAI closed models, but updating the prompt did help
@dexter_chann
@dexter_chann Жыл бұрын
does it has converstaion memory?
@jerpint
@jerpint Жыл бұрын
Not yet but hoping to add that feature soon
@01juren
@01juren Жыл бұрын
I think that in the prompting, you need to be more specific like: " Question: .... and answer: ....... " At time: 55:47
@MegaFristy
@MegaFristy Жыл бұрын
Can you convert the model to ONXX format
@jerpint
@jerpint Жыл бұрын
The model under the hood is GPT, can’t be converted because we don’t have the weights :/
@VaibhavShewale
@VaibhavShewale Жыл бұрын
sed, to even play with it you gonna need money! i thought we would create our own chat bot or something :(
@jerpint
@jerpint Жыл бұрын
You can play with it for free on the huggingface space itself, but to deploy your own you have to pay OpenAI
@markgarrett2971
@markgarrett2971 Жыл бұрын
What would it cost to run a chatbot like this?
@jerpint
@jerpint Жыл бұрын
@@markgarrett2971 openAI charges by the token, and price per token varies by model. From experience,
@Hydrosal
@Hydrosal Жыл бұрын
HI Jeremy, I have a project for you, let me if you would be interested
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 400 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 19 МЛН
How To Create Custom GPTs - Build your own ChatGPT
12:17
Skill Leap AI
Рет қаралды 328 М.
The easiest way to chat with Knowledge Graph using LLMs (python tutorial)
18:35
What is LangChain?
8:08
IBM Technology
Рет қаралды 149 М.
How to set up RAG - Retrieval Augmented Generation (demo)
19:52
Don Woodlock
Рет қаралды 13 М.
End To End LLM Conversational Q&A Chatbot With Deployment
18:31
Krish Naik
Рет қаралды 35 М.
Let's build GPT: from scratch, in code, spelled out.
1:56:20
Andrej Karpathy
Рет қаралды 4,4 МЛН
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 19 МЛН