Spaces:
Sleeping
Sleeping
pwilczewski
commited on
Commit
·
4c6c0a8
1
Parent(s):
13ab127
prompting, simpler models
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ system_prompt = """You are working with a pandas dataframe in Python. The name o
|
|
29 |
|
30 |
You are not meant to use only these rows to answer questions - they are meant as a way of telling you about the shape and schema of the dataframe.
|
31 |
You also do not have use only the information here to answer questions - you can run intermediate queries to do exporatory data analysis to give you more information as needed.
|
32 |
-
Do not ask if the user wants additional information or analysis."""
|
33 |
system_prompt = system_prompt.format(dhead=df.head().to_markdown())
|
34 |
|
35 |
# The agent state is the input to each node in the graph
|
@@ -72,7 +72,7 @@ def chain_node(state: AgentState, chain, name):
|
|
72 |
# cell 3
|
73 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
74 |
llm = ChatOpenAI(model="gpt-4o-mini-2024-07-18", temperature=0, api_key=OPENAI_API_KEY)
|
75 |
-
llm_big = ChatOpenAI(model="gpt-4o", temperature=0, api_key=OPENAI_API_KEY)
|
76 |
|
77 |
eda_task = """Using the data in the dataframe `df` and the package statsmodels, first run an augmented dickey fuller test on the data.
|
78 |
Using matplotlib plot the time series, display it and save it to 'plot.png'.
|
|
|
29 |
|
30 |
You are not meant to use only these rows to answer questions - they are meant as a way of telling you about the shape and schema of the dataframe.
|
31 |
You also do not have use only the information here to answer questions - you can run intermediate queries to do exporatory data analysis to give you more information as needed.
|
32 |
+
Do not mention next steps. Do not ask if the user has any follow up questions. Do not ask if the user wants additional information or analysis."""
|
33 |
system_prompt = system_prompt.format(dhead=df.head().to_markdown())
|
34 |
|
35 |
# The agent state is the input to each node in the graph
|
|
|
72 |
# cell 3
|
73 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
74 |
llm = ChatOpenAI(model="gpt-4o-mini-2024-07-18", temperature=0, api_key=OPENAI_API_KEY)
|
75 |
+
llm_big = ChatOpenAI(model="gpt-4o-mini-2024-07-18", temperature=0, api_key=OPENAI_API_KEY)
|
76 |
|
77 |
eda_task = """Using the data in the dataframe `df` and the package statsmodels, first run an augmented dickey fuller test on the data.
|
78 |
Using matplotlib plot the time series, display it and save it to 'plot.png'.
|