MSUSAzureAccelerators / Azure-Cognitive-Search-Azure-OpenAI-Accelerator

Virtual Assistant - GPT Smart Search Engine - Bot Framework + Azure OpenAI + Azure AI Search + Azure SQL + Bing API + Azure Document Intelligence + LangChain + CosmosDB
https://gptsmartsearchapp.azurewebsites.net
MIT License
333 stars 549 forks source link

Added "Langchain Experimental" library due to deprecation #42

Closed maurominella closed 11 months ago

maurominella commented 11 months ago

The warnings at the bottom show up in 06-TabularDataQA.ipynb and in 09-Smart_Agent.ipynb (that actually uses utils.py that I worked on).

As the message says, On 2023-10-27 this module will be be deprecated from langchain

So I added langchain-experimental==0.0.42 to requirements. txt and then replaced langchain.agents with langchain_experimental.agents.agent_toolkits. Bottom line, the three modified files are requirements.txt, utils.py and 06-TabularDataQA.ipynb.

I tested them working even in the backend and frontend apps

image