From a0ebe7f869feddb9644567015b6cb65ccc39ceb8 Mon Sep 17 00:00:00 2001 From: orishim Date: Wed, 21 Feb 2024 13:06:54 +0000 Subject: [PATCH 1/4] Update Disclaimer.tsx --- web/components/Disclaimer.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/web/components/Disclaimer.tsx b/web/components/Disclaimer.tsx index 25bef17..66ccc44 100644 --- a/web/components/Disclaimer.tsx +++ b/web/components/Disclaimer.tsx @@ -16,16 +16,10 @@ const Disclaimer = () => { />
- This AI agent is experimental: + This AI agent is experimental.
- - The agent is doing its best to find and evaluate projects based on - publicly available data, but we cannot guarantee its accuracy. -
-
- - The agent uses project addresses provided in past Gitcoin - applications, but we cannot guarantee that each project is still in - control of its address. + The agent is evaluating projects based on self-reported data through past Gitcion applications and therefor cannot guarantee their accuracy at this time. The agent also cannot guarantee that each project is still in control of its address, so please double check before sending large amounts.
From 8acf0b31e4f818bd53bf9179ef5f585208a5e9c2 Mon Sep 17 00:00:00 2001 From: nerfZael Date: Wed, 21 Feb 2024 15:04:22 +0100 Subject: [PATCH 2/4] using real address for zksync usdt address --- web/utils/ethereum/supportedErc20TokensByNetwork.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/ethereum/supportedErc20TokensByNetwork.ts b/web/utils/ethereum/supportedErc20TokensByNetwork.ts index 6470ed4..a2c6c93 100644 --- a/web/utils/ethereum/supportedErc20TokensByNetwork.ts +++ b/web/utils/ethereum/supportedErc20TokensByNetwork.ts @@ -88,7 +88,7 @@ export const supportedErc20TokensByNetwork: SupportedTokensInformation = { name: "DAI", }, USDT: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", + address: "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C", decimals: 6, name: "USDT", }, From e15ae58d3c4a009db339df081c5d0dd6ff70404b Mon Sep 17 00:00:00 2001 From: Nestor Amesty Date: Wed, 21 Feb 2024 15:56:15 +0100 Subject: [PATCH 3/4] Removed loop --- .../lib/strategy/utils/get_top_matching_projects.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/workers/fund_public_goods/lib/strategy/utils/get_top_matching_projects.py b/workers/fund_public_goods/lib/strategy/utils/get_top_matching_projects.py index a90187b..c94c9b8 100644 --- a/workers/fund_public_goods/lib/strategy/utils/get_top_matching_projects.py +++ b/workers/fund_public_goods/lib/strategy/utils/get_top_matching_projects.py @@ -91,13 +91,11 @@ def get_top_matching_projects(prompt: str) -> list[Projects]: ) target_unique_ids = 35 - total_unique_ids: list[str] = [] - while (len(total_unique_ids) < target_unique_ids): - matches = vectorstore.similarity_search(query=prompt, k=300, filter={"id": { "$nin": total_unique_ids }}) - query_to_matched_project_ids = [match.metadata["id"] for match in matches] - - total_unique_ids += remove_duplicates_and_preserve_order(query_to_matched_project_ids) + matches = vectorstore.similarity_search(query=prompt, k=1500) + query_to_matched_project_ids = [match.metadata["id"] for match in matches] + + total_unique_ids = remove_duplicates_and_preserve_order(query_to_matched_project_ids) matched_projects: list[tuple[Projects, list[Answer]]] = get_projects_by_ids(total_unique_ids[:target_unique_ids]) From 51b939696bf7cb1edd46836a91ae63bbdf4f3e79 Mon Sep 17 00:00:00 2001 From: Nestor Amesty Date: Wed, 21 Feb 2024 17:34:03 +0100 Subject: [PATCH 4/4] Typo fix --- web/components/Disclaimer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/Disclaimer.tsx b/web/components/Disclaimer.tsx index 66ccc44..455174a 100644 --- a/web/components/Disclaimer.tsx +++ b/web/components/Disclaimer.tsx @@ -19,7 +19,7 @@ const Disclaimer = () => { This AI agent is experimental.
- The agent is evaluating projects based on self-reported data through past Gitcion applications and therefor cannot guarantee their accuracy at this time. The agent also cannot guarantee that each project is still in control of its address, so please double check before sending large amounts. + The agent is evaluating projects based on self-reported data through past Gitcion applications and therefore cannot guarantee their accuracy at this time. The agent also cannot guarantee that each project is still in control of its address, so please double check before sending large amounts.