pyspark-ai
pyspark-ai copied to clipboard
English SDK for Apache Spark
When trying to load a dataframe from a webpage, e.g.: ```python df = spark_ai.create_df('https://en.wikipedia.org/wiki/List_of_countries_by_vehicles_per_capita') ``` It often doesn't load the entire table into the dataframe (the table on the webpage...
Currently, all the prompts are in one file. To improve the readability, we can have a new module "prompt" and split the file `prompt.py` into files such as `transform.py`, `plot.py`,...
This PR adds support for 50+ models using liteLLM : https://github.com/BerriAI/litellm/ `ChatLiteLLM()` is integrated into langchain and allows you to call all models using the ChatOpenAI I/O interface https://python.langchain.com/docs/integrations/chat/litellm Here's...
Tried with Code Llama and it fails with import code blocks. 
Add an example notebook with Code Llama. For instance, we can try Code Llama on the following functions: - df.ai.plot() - df.ai.verify() - Create python UDF via `@spark_ai.udf` annotation
When using GPT3.5-turbo with pyspark-ai, I'm getting the error below: NFO: Creating temp view for the transform: df.createOrReplaceTempView("spark_ai_temp_view_875e9a") > Entering new AgentExecutor chain... Traceback (most recent call last): File "/home/hadoop/p.py",...
Hi, I'm having an issue using Vertex AI as LLM. This is the log: ``` import plotly.express as px df = spark.sql("SELECT Nationality, count(*) as cnt FROM football_stats GROUP BY...
This patch adds a new feature to the project that allows generating PySpark code instead of SQL code for a given prompt. This is valuable since it's closer to the...
是否可以支持中文提交?