aiplatform 认证gcloud ''' from pandasai.llm import GoogleVertexAI llm = GoogleVertexAI(project_id="generative-ai-training", location="us-central1", model="text-bison@001") #Azure OpenAI from pandasai.llm import AzureOpenAI llm = AzureOpenAI( api_token="my-azure-openai-api-key", azure_...
ibm-watsonx-ai:如果您想使用IBM watsonx.ai作为语言模型,则需要此额外依赖项。 SmartDataframe SmartDataframe 类是 pandasai 的主要类,用于与单个数据帧进行交互。下面是一个简单的示例,帮助您开始使用 pandasai。 import os import pandas as pd from pandasai import SmartDataframe # Sample DataFrame sales_by...
若要使用 Azure OpenAI 模型,需要具有 Azure OpenAI API 密钥以及 Azure OpenAI 终结点。 https://azure.microsoft.com/zh-cn/products/ai-services/openai-service/ 示例代码如下: frompandasaiimportSmartDataframefrompandasai.llmimportAzureOpenAI llm=AzureOpenAI(api_token="my-azure-openai-api-key",azure_endp...
Options are: openai, open-assistant, starcoder, falcon, azure-openai, or google-palm. -p, --prompt: The prompt for PandasAI to execute. Read the Pandas AI documentation to learn about more functions and features that can simplify your workflow. Conclusion Pandas AI has the potential to ...
Example: Use below example to call AzureOpenAI class >>> from pandasai.llm.azure_openai import AzureOpenAI """ import os from typing import Any, Dict, Optional import openai from dotenv import load_dotenv from openai import InvalidRequestError from openai.error import APIConnect...
PandasAI+LLM,能行? 🔧 使用条件: 支持多种LLM模型,如OpenAI、Azure、Google、LangChain,以及本地的Ollama模型。目前来看,OpenAI的GPT-4表现最佳。 使用OpenAI模型需要API key,2024年3月8日后,即使使用GPT-3.5-turbo,也需在OpenAI官网充值至少5美元。 安装PandasAI。 🌟 使用体验: GPT-4在生成图表方面表现更...
🐛 Describe the bug I have the following function: def get_agent_response(self, uploaded_file_content, query): from pandasai import PandasAI from pandasai.llm.azure_openai import AzureOpenAI llm = AzureOpenAI( api_token = os.environ["OPEN...
The Pandasai API currently supports several models, and it is continuously being developed with the possibility of adding more models in the future. The supported models include: ChatGPT by OpenAI StarCoder by Huggingface Azure ChatGPT API
PandasAI is versatile and can work with various types of models. These include Hugging Face models, Azure OpenAI, Google PALM, and Google VertexAI. Each of these models brings its own strengths to the table, enhancing the capabilities of PandasAI. ...
Options are: openai, open-assistant, starcoder, falcon, azure-openai, or google-palm. -p, --prompt: The prompt for PandasAI to execute. Read the Pandas AI documentation to learn about more functions and features that can simplify your workflow. Conclusion Pandas AI has the potential to ...