LangChain Tools | Free Web Search + Math Tool
Dr Pi
LLMs are rubbish at Maths! This video demonstrates how to use tools with an agent in LangChain. to do accuarte mathematics. I show an example and then add the math tool to fix it. We use wikipedia and ducduckgo for the search and alter the descriptions to make sure they are used for date sensitive searches.
- chapters - 00:00 intro 01:37 SerpAPI alternative? 03:19 tools 05:24 deprecated code for LLMMathChain 08:48 Action:Calculator 11:33 check chatGPT with cube root
I also fix the deprecation warning:
❌ llm_math_chain = LLMMathChain(llm=llm, verbose=True) #old way
✔️ llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True) #new way
Become a patron : 🌏 https://www.patreon.com/drpi
If you want a fast VPS server with Python installed check out : https://webdock.io/en?maff=wdaff--170
https://github.com/RGGH/LangChain_101/blob/main/free_web_search.ipynb
Thumbs up yeah? (cos Algos..)
#LangChain #freewebsearch #LLMMathChain ... https://www.youtube.com/watch?v=zdwYHg9CEvg
127487574 Bytes