Skip to content

Commit

Permalink
Merge pull request #221 from polywrap/release/dev
Browse files Browse the repository at this point in the history
Release 21 Feb - 2nd release
  • Loading branch information
namesty authored Feb 21, 2024
2 parents 6e14b6c + 7005aab commit 8f3b4e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
10 changes: 2 additions & 8 deletions web/components/Disclaimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,10 @@ const Disclaimer = () => {
/>
<div className='p-6 bg-indigo-25 rounded-2xl border-2 border-indigo-200 space-y-1 shadow-md shadow-primary-shadow/20'>
<div className='font-bold text-sm'>
This AI agent is experimental:
This AI agent is experimental.
</div>
<div className="text-[10px]">
- The agent is doing its best to find and evaluate projects based on
publicly available data, but we cannot guarantee its accuracy.
</div>
<div className="text-[10px]">
- 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 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.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/utils/ethereum/supportedErc20TokensByNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const supportedErc20TokensByNetwork: SupportedTokensInformation = {
name: "DAI",
},
USDT: {
address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
address: "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",
decimals: 6,
name: "USDT",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 8f3b4e7

Please sign in to comment.