PAL : Program-aided Language Models with LangChain code

  Рет қаралды 15,152

Sam Witteveen

Sam Witteveen

Күн бұрын

Пікірлер: 31
@AndiEliot
@AndiEliot Жыл бұрын
Please note PALChain has now moved to langchain_experimental. Also code-davinci-002 model does not work use gpt-3.5-turbo instead.
@samwitteveenai
@samwitteveenai Жыл бұрын
Yes this video was made over 6 months ago and they have changed, gpt-3.5-turbo is also not the best at PAL. GPT-4 works better but some of the open source models have also been getting better lately too.
@mitchellscott2992
@mitchellscott2992 Жыл бұрын
Fantastic videos Sam - this playlist has (happily) consumed my entire night. Who needs fresh laundry anyway?!
@samwitteveenai
@samwitteveenai Жыл бұрын
Hopefully the LLMs can do the laundry soon. :D Thanks for the kind words.
@GeoffY2020
@GeoffY2020 Жыл бұрын
Fantastic video ! I watched it like 3 times over last few days as it makes me think what to append to make LLM useful ... feed us more ! thanks
@samwitteveenai
@samwitteveenai Жыл бұрын
Glad you enjoyed it! There are a few more papers this with cool examples of using prompting to do unconventional things. You might like the video and code on Visual ChatGPT which uses other external tools via prompting as well.
@MrAkhilanil
@MrAkhilanil Жыл бұрын
Hey great video, what did you mean when you said the example with reaching to school is incorrect because there were no similar prompts before. I can see it followed the exact same step as the first example.
@bandui4021
@bandui4021 Жыл бұрын
What would be the approach to find the issue why it is calculating wrongly? Is there a way to look into the NN or we are just changing the prompt and hope for a better result. So my question is how we could "look" into the NN to find the error or i am thinking to easy? Thanks
@samwitteveenai
@samwitteveenai Жыл бұрын
probing in the NeuralNet it's self is a major research effort. Most likely if it is the model itself that is calculating wrongly, then it just hasn't seen enough examples. If the issue is with PAL then I would suggest you work on modifying the prompt.
@goelnikhils
@goelnikhils 6 ай бұрын
Very good video on Program-Aided Large Language Models
@venkatesanr9455
@venkatesanr9455 Жыл бұрын
Thanks for your video, Sam. I hav one doubt whether langchain+LLMs like flan T5 x, T5 xl, flan 20 B & flan UL20B accessing using huggingface tokens ( other than downloading model) is free of service. When we are considering alternative to open ai gpt3 models.
@samwitteveenai
@samwitteveenai Жыл бұрын
Their API is is not a totally free of service and to be honest I wouldn't use the free version to put something into production, that said I have never maxed out my free API calls so far. There doesn't seem to be a lot of info on their pricing page huggingface.co/pricing this could be that they are in startup mode to get lots of users before charging etc. The main disadvantage I have seen is that some of the bigger models often don't work with the API. I do wonder how long they will keep the Flan UL20B up for free for example. If I find something better I will certainly make a video of it. If you find something else please let me know :D
@nicolasmenescardi4077
@nicolasmenescardi4077 11 ай бұрын
great video! Is OpenAI function calling replacing this?
@samwitteveenai
@samwitteveenai 11 ай бұрын
they can if used with REPL etc but function calling has more replaced ReACT etc.
@scottstults8756
@scottstults8756 Жыл бұрын
In March of 2023 OpenAI deprecated the code-davinci-002 model. You can get the first example to run if you replace it with "gpt-3.5-turbo".
@aayushsmarten
@aayushsmarten 11 күн бұрын
Its good but I have a case where the model has to "think through by calculating in between the steps" doing this will make many back and forth calls to the model and the interpreter. So when the interpreter returns the result back to the model, it needs to start from scratch. Unless we have some "continuation" models... there should be some way to "pause" the model and when the answer comes from the interpreter, the model should resume its generation.
@ratral
@ratral Жыл бұрын
Sam, When I first saw the video, the PAL module's importance was unclear to me (mea culpa). Now watching the video again and reading the article, I recognize great potential. Thanks for the clarification.
@samwitteveenai
@samwitteveenai Жыл бұрын
unfortunately that model is no longer publicly available on OpenAI.
@jakubbartczuk3956
@jakubbartczuk3956 Жыл бұрын
Hey man, great video. Did you read LMQL paper by any chance?
@samwitteveenai
@samwitteveenai Жыл бұрын
I did its certainly an interesting idea. I might make a vid on it.
@1peacockeye
@1peacockeye Жыл бұрын
Thank you very much for your fantastic videos! Can a PAL also be simulated within a LLM? So, through specific prompting the LLM simulates a Python environment in which it does the calculation and then returns the answer? Does that make sense?
@samwitteveenai
@samwitteveenai Жыл бұрын
It has been tried and can work to a degree, but often will get small parts wrong and thus hasn't been reliable so far.
@henkhbit5748
@henkhbit5748 Жыл бұрын
Nice and interesting if u want to aks more math question, you used code-davinci-02 in the setup for pal but can u combine it with the normal llm like chatgpt-turbo3.5 ?
@samwitteveenai
@samwitteveenai Жыл бұрын
Yes but it doesn't always work as well. unfortunately the code-002 model has now been taken down on the OpenAI API. GPT-4 does a pretty good job
@florianstephan5745
@florianstephan5745 Жыл бұрын
Hey Sam, great Channel, appreciate it!!!!
@jacktherater3533
@jacktherater3533 Жыл бұрын
Makes sense. Even I can't do math without calculator.
@shouldb.studying4670
@shouldb.studying4670 Жыл бұрын
+
@daniel_grindforce994
@daniel_grindforce994 Жыл бұрын
Great job man. I subbed. Lets keep em coming!
@ObservingBeauty
@ObservingBeauty Жыл бұрын
Great video. Very helpful
@samwitteveenai
@samwitteveenai Жыл бұрын
Glad it was helpful!
Microsoft's Visual ChatGPT using LangChain
13:59
Sam Witteveen
Рет қаралды 13 М.
LangChain Basics Tutorial #2 Tools and Chains
17:42
Sam Witteveen
Рет қаралды 39 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Large Language Models in Five Formulas
58:02
Sasha Rush 🤗
Рет қаралды 36 М.
Comparing LLMs with LangChain
17:43
Sam Witteveen
Рет қаралды 17 М.
The Best RAG Technique Yet? Anthropic’s Contextual Retrieval Explained!
16:14
Understanding ReACT with LangChain
21:10
Sam Witteveen
Рет қаралды 52 М.
Improve your BabyAGI with LangChain
16:00
Sam Witteveen
Рет қаралды 21 М.
PydanticAI - Building a Research Agent
17:34
Sam Witteveen
Рет қаралды 18 М.
Building Brain-Like Memory for AI | LLM Agent Memory Systems
43:31
Local GraphRAG with LLaMa 3.1 - LangChain, Ollama & Neo4j
15:01
Coding Crash Courses
Рет қаралды 34 М.
Talking to Alpaca with LangChain - Creating an Alpaca Chatbot
10:59
Sam Witteveen
Рет қаралды 36 М.