-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EvoResearcher Tool: prediction_with_research_report #153
EvoResearcher Tool: prediction_with_research_report #153
Conversation
# | ||
# ------------------------------------------------------------------------------ | ||
|
||
"""This module contains the bet amount per threshold strategy.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be any different? I see it's the same in all tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see 😞
Opened #157.
Ideally, it should include a description of the corresponding module. Something like:
"""This module contains the bet amount per threshold strategy.""" | |
"""This module contains the evo researcher tool.""" |
tools/prediction_with_research_report/prediction_with_research_report.py
Outdated
Show resolved
Hide resolved
tools/prediction_with_research_report/prediction_with_research_report.py
Outdated
Show resolved
Hide resolved
) | ||
|
||
openai_api_key = kwargs["api_keys"]["openai"] | ||
tavily_api_key = kwargs["api_keys"]["tavily"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently don't utilize this service. It seems like a good addition, we will take a look.
pyproject.toml
Outdated
@@ -61,4 +61,4 @@ pandas = "==2.1.1" | |||
tiktoken = "==0.5.1" | |||
python-dateutil = "==2.8.2" | |||
tomte = {version = "==0.2.15", extras = ["cli", "tests"]} | |||
|
|||
evo_researcher = "==0.1.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mech specifies ^3.10
for the allowed python versions. But this package (or one of its deps) requires sqlite3>3.35.0, which doesnt come with all ^3.10 versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. This is due to ChromaDB: https://docs.trychroma.com/troubleshooting#sqlite
I went with their second proposed approach (the first being just upgrading to a later Python 3.10 version): https://gist.github.com/defulmere/8b9695e415a44271061cc8e272f3c300
But do let me know if this should be handled differently
tools/prediction_with_research_report/prediction_with_research_report.py
Outdated
Show resolved
Hide resolved
b197ad5
to
1e4ae61
Compare
@namesty we are aiming to include this next week on the mech. There are two things required to do that:
|
Dynamic pricing was added on #166 |
@0xArdi I've updated the deps, added token counting for dynamic pricing as per the other example tools, and re-pinned everything to IPFS |
I believe in this PR there should have been updates to the mech's mech/packages/polywrap/customs/prediction_with_research_report/prediction_with_research_report.py Line 519 in 5cb0383
Not sure what needs to be updated though, would appreciate some guidance @0xArdi @Adamantios @kongzii |
Overview
This PR aims to add a new tool that uses: https://github.com/polywrap/evo.researcher in order to generate a research report which is then injected as
additional_information
to the already existing prediction prompt from theprediction_sentence_embedding
tool.This has shown to consistently impact the scores of predictions for questions such as: "Will Twitter implement a new misinformation policy before the 2024 elections?", "Will the goal of not surpassing 1.5 degrees Celsius set by the Paris Agreement be reached by 2030?", among others taken from Omen's subgraph. It makes prediction scores more nuanced and
information_utility
scores higher.Evo researcher's repo contains the implementation of the research function.
Costs & Time
Average times in seconds (s):
Using
gpt-3.5-turbo-1106
: 58Using
gpt-4-1106-preview
: 120Average costs in USD ($):
Using
gpt-3.5-turbo-1106
: 0,0099Using
gpt-4-1106-preview
: 0,1012Notes
gpt-3.5-turbo-1106
prediction_sentence_embedding