Тёмный
No video :(

Using LangChain with DuckDuckGO Wikipedia & PythonREPL Tools 

Sam Witteveen
Подписаться 65 тыс.
Просмотров 22 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 79   
@souvickdas5564
@souvickdas5564 Год назад
I follow a lot of youtube channels for AI. But I must say and I am sure most of your subscribers will agree that your contents are in another level. Thanks for everything. Can't wait to see your future videos on conversating chatbots (Agent simulation) to produce a remarkable things.
@autonomousreviews2521
@autonomousreviews2521 Год назад
Thank you for your time! Langflow might make an interesting video topic :)
@samwitteveenai
@samwitteveenai Год назад
totally agree the issue with this is how to put it in a colab for people to play with it. I always try to release some code so people can try it out themselves. I need to look at it again.
@autonomousreviews2521
@autonomousreviews2521 Год назад
@@samwitteveenai My thought was that perhaps for some of your vids, you have a little segment that translates the usage to langflow so that we can see how to begin to string graphical nodes together to get the same kind of outcomes that you're showing with your code bits? Thanks again for making all this more accessible for the 'common man' :)
@mikew2883
@mikew2883 Год назад
Good stuff! Excellent video! 👍
@jawi2030
@jawi2030 Год назад
I would be really interested in using models like alpaca 7b that you can self host for this kind of application and see if the performance of these 'small' models would actually suffice. 🤔
@AnmAtAnm
@AnmAtAnm Год назад
LangChain works with several LLMs, including llama derivatives.
@jawadmansoor6064
@jawadmansoor6064 Год назад
Yes, use Vicunia 7B, or would you wait for red pajamas?
@s.patrickmarino7289
@s.patrickmarino7289 Год назад
@@jawadmansoor6064, I would say, play with several of them before you start training the model with your custom data.
@randomNunber
@randomNunber Год назад
I actually tested it on Gpt4all 7B 4bit, vicuna 7B 4 but (llama based) models, frankly it was not correctly working, i tested it on the python_repl by parsing a CSV file and asking it to find the rows of the CSV, but unfortunately it didn't pass the correct python code to do that, but it correctly identified that it should use the pandas library and dataframe method. It was looping again and again for ever with each time giving a wrong response. I think we should do further testing and i am sure that larger model like the vicuna 13B or the Openassistant 30B model will work correctly(i was not able to test the bigger model as am resource limited)
@jawadmansoor6064
@jawadmansoor6064 Год назад
@@randomNunber thank you for tests and reporting results
@AbdennacerAyeb
@AbdennacerAyeb Год назад
very informative; Thank you for sharing these amazing stuffs
@wiseadmin6790
@wiseadmin6790 6 месяцев назад
Hi, Great tutorial! There are some changes in the latest LangChain library. Warning:```LangChainDeprecationWarning: The function `initialize_agent` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead. How to create_react_agent instead of calling initialize_agent()
@samwitteveenai
@samwitteveenai 6 месяцев назад
Check out my 1st video on LangGraph it has some of these there
@adithyabalasubramanian8861
@adithyabalasubramanian8861 6 месяцев назад
Getting this error when trying to query something from duckduckgo search-error code : 60 , 'SSL certificate problem: unable to get local issuer certificate' Any way to solve this? Please help me
@rsbohn
@rsbohn Год назад
`from langchain.agents import initialize_agent, Tool`
@intelligenzaartificialeitalia
HERO
@tradingwithwill7214
@tradingwithwill7214 Год назад
Helpful video. I did a zapier chain with the langchain example where i set up find email and send email. It would send the email but i was asking for summaries of stoicism and it wasn’t creating a summary in the email. Then when i had find and send email zapier calls it seemed to be calling the send email without the find email first but i could never get it to fill in the email properly. Not sure how to debug these natural language bugs.
@sandeepsasikumar701
@sandeepsasikumar701 8 месяцев назад
Hi, I amm getting outputparser exception for the above code
@generic-youtube-user
@generic-youtube-user Год назад
By the way, you got any full fledged course for these langchain & using LLMs, apart from this playlist on youtube?
@rodluc2001
@rodluc2001 Год назад
Top video! really perfect. thanks
@brianrowe8424
@brianrowe8424 Год назад
from langchain.agents import Tool was missing from the notebook..
@jipabr
@jipabr Год назад
Hi! Is there any way to make the wikipediaAPIwrapper print the output on another language(french, spanish, etc...)???? And for the DuckDuckGo tool, is there any way to set the country for searching information??? For example, if I live in Germany and I ask the engine to tell me when Germany's next football match will take place, I would like the engine to tell me Germany's time and not USA's.
@0xOrganix
@0xOrganix Год назад
Incredible Content!!!
@generic-youtube-user
@generic-youtube-user Год назад
hi Sam! Good tutorial. I have a question- let's say i'm going custom to use the python tool to answer queries out of a pandas dataframe. How can I do this? Should there be two tools, one which generates python commands and one PythonREPL tool? I'm actually looking into custom tool since the langchain's pandas agent does NOT seem to be supporting 'memory' so it can't really be used in a chatbot as it needs to be reminded of the context again and again.
@hiranga
@hiranga Год назад
For some reason, when I run `!pipenv install langchain` in my jupyter notebook, I keep getting version 0.0.131 . Any idea why its not installing the latest by default?
@samwitteveenai
@samwitteveenai Год назад
try pip install --upgrade langchain
@jaystanio
@jaystanio Год назад
Do langchain agents have the ability to access vector databases for custom knowledge that the user set (like the pdf example you had in another video)? If so, which tool would that be in langchain?
@samwitteveenai
@samwitteveenai Год назад
Yes you can do that in the same way as the PDF vid, but use an external vector store like Pinecone etc
@ControlProblem
@ControlProblem Год назад
Is there a hidden prefix for the prompt that tells the LLM how to use tools in general? That presumably is not native knowledge and is a Langchain feature.
@AnmAtAnm
@AnmAtAnm Год назад
The actual prompt is shown at 7:27
@stanTrX
@stanTrX 3 месяца назад
Hi sam, is this still valid & useful after one year. Or are there better tools around.another thing i dont get it clearly is whats the difference with crewai or autogen for ins.
@stanTrX
@stanTrX 3 месяца назад
i've tested it and getting errors for specfying the tools. probably some updates with the libraries : //
@geniusxbyofejiroagbaduta8665
since openai key is not free can you estimate how much you used for this video
@0xOrganix
@0xOrganix Год назад
less than 2 cents
@samwitteveenai
@samwitteveenai Год назад
for this video it would be low , in cents (probably 5-10cents max)
@MorSag
@MorSag 11 месяцев назад
Thank you, Sam! I am using LangChain in JavaScript. I couldn't find the DuckDuckGo tool available there. Is there any alternative tool?
@samwitteveenai
@samwitteveenai 11 месяцев назад
There is a the paid GSERP tool for google searches. You could also write one reasonably easily by modifying something like DuckDuckScrape
@stefb69
@stefb69 Год назад
Hello, there is a missing : from langchain.agents import Tool in block 16
@forgottenwisdoms
@forgottenwisdoms Год назад
I would love to make a tool that speeds up image search. Basically it would be great to type someones name or a city ect and immediately get images of the prompt.
@micbab-vg2mu
@micbab-vg2mu Год назад
Great video - thank you:)
@AiEdgar
@AiEdgar Год назад
Can I have langchanin running on a notebook on my computer and I put a prompt like via api and get the response?
@samwitteveenai
@samwitteveenai Год назад
yes if you code it up to do that.
@AiEdgar
@AiEdgar Год назад
@@samwitteveenaiThanks, Witteveen would you happen to know which commands I need for the API ?
@samwitteveenai
@samwitteveenai Год назад
I am not sure I understand what you are trying to do if you want to run your langchain app as an API that can be called via http etc you could use FastAPI or Flask and then expose a port.
@AiEdgar
@AiEdgar Год назад
@@samwitteveenai yes that's exactly it, I will use FastAPI thank you.
@mattie3875
@mattie3875 Год назад
Have you taken a look at the cataclysm library? Also would love your thoughts on my chatsnack module, more for ez ChatGPT usage-- not as advanced as langchain, though.
@samwitteveenai
@samwitteveenai Год назад
Chatsnacks looks interesting will check it out.
@user-wr4yl7tx3w
@user-wr4yl7tx3w Год назад
Does it use OpenAI LLM to reason which tool to use given a task? Not sure which line of code actually does this reasoning. I guess it is inside the zeroshot function. It is done behind the scene.
@samwitteveenai
@samwitteveenai Год назад
Yes the OpenAI model is what is deciding via text generation which tool it should use. the LangChain filters for that in the background.
@forgottenwisdoms
@forgottenwisdoms Год назад
This doesn't seem to be working very well. I I keep getting errors.
@samwitteveenai
@samwitteveenai Год назад
Yeah they changed the API for this the day after I released the video. I will update the code over the next few days.
@Ryan-yj4sd
@Ryan-yj4sd Год назад
Why would the prompts not use ChatOpenAI? Isn't it 10 times cheaper?
@samwitteveenai
@samwitteveenai Год назад
check out the video after this I did it with turbo and explained the issues and differences.
@dongwon2216
@dongwon2216 Год назад
Hi, I just found "Tool" was not defined in your notebook!
@samwitteveenai
@samwitteveenai Год назад
I just updated the the notebook now. Thanks to you and others who pointed this out.
@bseddonmusic1
@bseddonmusic1 Год назад
You are prolific!
@jawadmansoor6064
@jawadmansoor6064 Год назад
LangChain is AGI or a step towards it.
@samwitteveenai
@samwitteveenai Год назад
:D not quite but it's pretty cool.
@adriangabriel3219
@adriangabriel3219 Год назад
Have you tried open source models with this as well?
@samwitteveenai
@samwitteveenai Год назад
almost all don't work on these base prompts unfortunately.
@adriangabriel3219
@adriangabriel3219 Год назад
@@samwitteveenai thank's for the feedback. Are there potential data sets that could be used for fine tuning for these prompting tasks?
@samwitteveenai
@samwitteveenai Год назад
@@adriangabriel3219 not that are public AFAIK, I am looking at releasing a model for this.
@adriangabriel3219
@adriangabriel3219 Год назад
@@samwitteveenai could you elaborate a bit on how the data looks like that you are using for fine-tuning? So how do the instructions look like? Are you using open-source models to generate your training data? Have you used models like Dolly or OpenAssistant together with a sample seed to generate datasets? Could you make a video on that if so? I have tried Dolly extensively together with the approach from the Alpaca model (175 sample questions -> then generate more instructions based on those samples) and it failed miserably.
@ratral
@ratral Год назад
Thanks. 👍
@user-wr4yl7tx3w
@user-wr4yl7tx3w Год назад
Why does Google API even cost money? Since Google search is free anyway.
@samwitteveenai
@samwitteveenai Год назад
its actually a 3rd party that runs the API
@geniusxbyofejiroagbaduta8665
does openai key cost alot
@0xOrganix
@0xOrganix Год назад
i disagree, ran it 2 days straight around $15.00 usd
@samwitteveenai
@samwitteveenai Год назад
for this video it would be low , in cents (probably 5-10cents max)
@chriscourtney4339
@chriscourtney4339 Год назад
It gets gloopy glibd
@CodeJana
@CodeJana Год назад
Hi there, I have recently started getting into langchain & your video is immensely helpful. But I had received an error on Windows machine when I installed Langchain & imported it. Error was pexpect has no method called spawn. I've put up a solution video for it on my channel. I hope the video will be helpful for everyone. Thanks a ton for your video though. Langchain Pexpect Error Solution video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hCJyITK1iis.html
@klammer75
@klammer75 Год назад
Do you think we can get around the chat confusion of tool use, I’ve also seen this issue in my experiments, by being more concise and provide examples within the tool description? That’s again for all your hard work and love the content!🥳🦾
@andresnino3215
@andresnino3215 Год назад
very good videos bro, how can I contact you, I think we can do something great.
@samwitteveenai
@samwitteveenai Год назад
best to reach out on Linkedin
Далее
Tool Calling with LangChain
7:28
Просмотров 13 тыс.
Improve your BabyAGI with LangChain
16:00
Просмотров 21 тыс.
Why Democracy Is Mathematically Impossible
23:34
Просмотров 1,3 млн
5 Things I Wish I Knew Before Learning Streamlit
21:34