Skip to content
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

Add suggested tags #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gustavlrsn
Copy link
Member

  • Adding tags suggested by AI model
  • Filter out collectives without any financial activity

@vercel
Copy link

vercel bot commented Dec 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
horizons ✅ Ready (Inspect) Visit Preview Jan 11, 2023 at 2:04PM (UTC)

@gustavlrsn gustavlrsn changed the title Add suggested tags based on OpenAI prompt & remove collectives without financial activity Add suggested tags & remove collectives without financial activity Dec 23, 2022
@znarf
Copy link
Member

znarf commented Dec 23, 2022

Suggested tags are interesting but:

  • what would be the steps for someone to reproduce and update the list
  • how do we avoid miss-classification?

@gustavlrsn
Copy link
Member Author

gustavlrsn commented Dec 23, 2022

@znarf could add the steps to reproduce and update. Need to clean up that code first

I think this should mostly be viewed as a hack right now to improve the already faulty categorization we're doing with "groupTags", where we simply add "covid" under "mutual aid" for instance.

There is also a lot of collectives that are very obviously mutual aid from their description, but have neither the "mutual aid" or the "covid" tag.

The process used here is asking the OpenAI completion API to pick a category for a collective given its name, description and tags, out of a set of suggested categories (including "Other" if it can't find a suitable one).

But it could be greatly improved by also using the Embeddings API, to find clusters and distance between all collectives, which I experimented with a little bit but is not currently part of the generation of these tags.

It seems pretty straightforward and with very little work I think we could use it in the platform, for generating suggested tags when creating or editing your collective, and for Fiscal host admins to apply on a wider scale, and then removing the need to add them manually here

@gustavlrsn gustavlrsn changed the title Add suggested tags & remove collectives without financial activity Add suggested tags Dec 23, 2022
@gustavlrsn
Copy link
Member Author

Splitting up these two changes into two PRs so that we can consider adding suggested tags, and improve the classification, apart from removing collectives without activity which might be more straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants