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

Clustering of projects using embeddings #100

Open
9 of 13 tasks
andrew opened this issue Dec 21, 2023 · 3 comments
Open
9 of 13 tasks

Clustering of projects using embeddings #100

andrew opened this issue Dec 21, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@andrew
Copy link
Member

andrew commented Dec 21, 2023

To help automate discovery of new projects, I'd like to experiment with https://github.com/pgvector/pgvector and embeddings from a large language model to cluster projects together.

My plan is:

  • generate embeddings from the readme of each reviewed project
  • add the pgvector extension to postgresql
  • query the database for other projects closest to the embedding of the project
  • compare the "nearest" projects to their categories and topics
  • produce average vectors for each category of projects
  • produce an average of the vectors for all the reviewed projects
  • provide a interface (private for now due to API costs) for, a newly proposed project, to find out:
    • the closest existing projects
    • the closest categories
    • distance from each category average
    • distance from the total average
  • experiment with a selection of open source repositories (both climate related and totally unrelated) to find good distances to use as cut-off thresholds
  • experiment with including repo name, topics, description and other metadata when generating embeddings
@andrew andrew added the enhancement New feature or request label Dec 21, 2023
@andrew
Copy link
Member Author

andrew commented Dec 22, 2023

Working on this branch: https://github.com/ecosyste-ms/ost/tree/pgvector

@andrew
Copy link
Member Author

andrew commented Dec 22, 2023

Experimental output for project recommendations based on the similarity of readmes: https://gist.github.com/andrew/096b4dc209cbcb8701d6acbf812a4244

@andrew
Copy link
Member Author

andrew commented Jan 6, 2024

Also working on a related item in ecosyste-ms/awesome#3 which should help with classification of projects, in theory you'll be able to see which lists a project is most similar to.

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

No branches or pull requests

1 participant