im
commited on
Commit
·
df1da8a
1
Parent(s):
ad18eab
refinements
Browse files- requirements.txt +8 -3
- socratic.py +3 -1
requirements.txt
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
-
openai~=0.27.10
|
2 |
streamlit~=1.26.0
|
3 |
-
langchain~=0.0.285
|
4 |
metaphor-python~=0.1.16
|
5 |
wikipedia~=1.4.0
|
6 |
-
crawlbase~=1.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
streamlit~=1.26.0
|
|
|
2 |
metaphor-python~=0.1.16
|
3 |
wikipedia~=1.4.0
|
4 |
+
crawlbase~=1.0.0
|
5 |
+
|
6 |
+
langchain==0.2.0
|
7 |
+
langchain-core==0.2.0
|
8 |
+
langchain-community==0.2.0
|
9 |
+
langchain-openai==0.1.7
|
10 |
+
requests~=2.32.2
|
11 |
+
openai~=1.30.3
|
socratic.py
CHANGED
@@ -87,7 +87,9 @@ class SocraticGPT:
|
|
87 |
pf_template = HumanMessage(
|
88 |
content=f""" \
|
89 |
The above is the conversation between {SOCRATES} and {THEAETETUS} and the agent. They were likely to have made multiple mistakes or not follow guidelines or try inefficient way to solve the problem or incorrectly use the agent.
|
90 |
-
Asses critically the dialog above. Also asses critically the agent's answers. Explain your reasoning step by step. Be concise.
|
|
|
|
|
91 |
"""
|
92 |
)
|
93 |
# OpenAI token rate limiting prevent the model from answering - we are limiting the history
|
|
|
87 |
pf_template = HumanMessage(
|
88 |
content=f""" \
|
89 |
The above is the conversation between {SOCRATES} and {THEAETETUS} and the agent. They were likely to have made multiple mistakes or not follow guidelines or try inefficient way to solve the problem or incorrectly use the agent.
|
90 |
+
Asses critically the dialog above. Also asses critically the agent's answers. Explain your reasoning step by step. Be concise.
|
91 |
+
Start your answer with plaintext "NO" if you have no reasonable suggestions for improvements, do not say "NO" otherwise.
|
92 |
+
Answer:
|
93 |
"""
|
94 |
)
|
95 |
# OpenAI token rate limiting prevent the model from answering - we are limiting the history
|