Skip to content

Commit

Permalink
Merge pull request #243 from polywrap/release/dev
Browse files Browse the repository at this point in the history
Release March 14th
  • Loading branch information
dOrgJelli authored Mar 13, 2024
2 parents ddb5ee4 + c8d64fd commit 16fcd65
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 8 deletions.
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2023 Polywrap Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

53 changes: 46 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,46 @@
# fund-public-goods-ai
## Dev
From Root:
1. `nvm install && nvm use`
2. `yarn`
3. `yarn build`
4. `yarn dev`
# evo.sage
![](./content/evo-sage-banner.png)

---

[Discord](https://discord.gg/k7UCsH3ps9) | [Website](https://fundpublicgoods.ai) | :star: the repo !

---

## Welcome!

evo.sage is an agent that specializes in streamlining resource allocation. Try it now at [fundpublicgoods.ai](https://fundpublicgoods.ai)

![](./content/fundpublicgoods-ss.jpg)

## Need Help?

Join our [Discord community](https://discord.gg/k7UCsH3ps9) for support and discussions.

[![Join us on Discord](https://invidget.switchblade.xyz/k7UCsH3ps9)](https://discord.com/invite/k7UCsH3ps9)

If you have questions or encounter issues, please don't hesitate to [create a new issue](https://github.com/polywrap/evo.sage/issues/new) to get support.

## How it works

evo.sage is designed to generate funding allocation strategies based on the user's preferences and publicly available data. In its first implementation, it focuses on how to best allocate funds to Public Good Projects (PGPs) that were apart of past [GitCoin](https://www.gitcoin.co/) rounds.

Digging a bit deeper, here are the steps the agent takes when creating an allocation strategy:

1. **Find Relevant Projects.** Perform a vector similarity search across project data from all past Gitcoin rounds. Aggregate the results, filter out duplicates, and rerank the results based on the original prompt to arrive at the top ten. *Techniques used: [Similarity Search](https://www.pinecone.io/learn/what-is-similarity-search/), [LLM-based Reranking](https://medium.com/@foadmk/enhancing-data-retrieval-with-vector-databases-and-gpt-3-5-reranking-c58ec6061bde)*

2. **Generate Holistic Evaluations.** Generate a comprehensive report for each project that breaks down its a) relevance, b) impact, and c) funding needs. *Techniques used: [Generated Knowledge Prompting](https://www.promptingguide.ai/techniques/knowledge), [Zero-Shot Prompting](https://www.promptingguide.ai/techniques/zeroshot), Summarization*

3. **Compute Evaluation Scores.** Analyze each report and assign a numerical evaluation score from 0-10 for each of the three criteria. Combine these scores through a weighted average to arrive at the project’s overall score. Weight the allocation percentages in proportion to scores of the projects with addresses on the selected chain. *Techniques used: [RAG](https://www.promptingguide.ai/techniques/rag), Numerical Evaluations, Algorithmic Composition*

![](./content/strategy-ss.png)

The allocation strategy includes a report for each project summarizing the agent’s findings.

![](./content/report-ss.png)

One critical aspect of the report is the impact section. The agent uses information from the project’s Gitcoin round applications to arrive at an intelligent estimate of the impact that a project has had.

Another unique aspect of the report is that it estimates each project’s funding needs based on information like prior funding and team size. This help gives context on the project’s past funding sources, such as venture backing or grants.

An important limitation to note is that this version of the agent only uses self-reported data from projects. But future versions could use a variety of on- and off-chain data from third parties.
Binary file added content/evo-sage-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/fundpublicgoods-ss.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/report-ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/strategy-ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Footer() {
<span>a web3 agent by</span>
<a
className='underline font-semibold'
href='https://blog.polywrap.io'
href='https://polywrap.io'
target='_blank'
rel='noopener noreferrer'>
polywrap
Expand Down

0 comments on commit 16fcd65

Please sign in to comment.