Using LangChain Pandas DataFrame Agent with a remote DataFrame in Azure Container Apps #29493
Replies: 1 comment 2 replies
-
To integrate the LangChain Pandas DataFrame Agent with Azure Container Apps for handling remote DataFrames, you can follow these steps:
For handling remote data sources in a dynamic session environment like Azure Container Apps, LangChain provides examples and documentation that might be helpful. Specifically, the document "docs/docs/integrations/tools/azure_dynamic_sessions.ipynb" provides guidance on using Azure Container Apps dynamic sessions to securely run Python code in isolated sandboxes, which includes handling data and executing code [1]. This approach allows you to leverage the capabilities of LangChain and Azure Container Apps to work with remote DataFrames effectively. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on integrating the LangChain Pandas DataFrame Agent with Azure Container Apps' dynamic session pool, where user-uploaded CSVs are loaded into a Pandas DataFrame inside the session container. Since the create_pandas_dataframe_agent function expects a local DataFrame, I'm wondering if there's a way to make it work with a remotely stored DataFrame that must be queried via API. Ideally, I’d like the agent to execute DataFrame operations inside the session and return the results to my web server. Has anyone tried something similar, or is there a recommended approach for handling this use case?
Beta Was this translation helpful? Give feedback.
All reactions