Build a Langchain Agent that Can Search the Web with frontend in Dash
Charming Data
Use Dash to build the frontend interface for a Langchain agent with Tavily -- a web search tool. Unlike ChatGPT, this agent can help you with almost real-time data.
Charming Data: https://charming-data.circle.so/home
Code for app: https://charming-data.circle.so/c/langchain-education/build-a-langchain-agent-that-can-search-the-web-with-frontent-dash
Tavily API key: https://app.tavily.com/home
OpenAI API key: https://platform.openai.com/api-keys
Tavily web search tool: https://python.langchain.com/docs/integrations/tools/tavily_search/
Video layout: 00:00 - App demo 01:19 - Code and .env file 02:02 - API keys 02:48 - Installation and run app 03:36 - Loading keys into app 04:34 - Add Langchain Agent 07:22 - process_chat function 08:40 - Dash layout 09:35 - Callback 11:45 - Dispaly response 12:54 - Chat history
š Your support keeps Charming Data running, which is proudly a 100% member-supported educational channel: Charming Data Community: https://charming-data.com/GitHub: https://github.com/sponsors/Coding-with-AdamYouTube: https://www.youtube.com/channel/UCqBFsuAz41sqWcFjZkqmJqQ/joinLinkedIn: https://www.linkedin.com/in/adam-schroeder-17b5a819/ ... https://www.youtube.com/watch?v=UARyjYaCekM
77192855 Bytes