{"id":23586671,"url":"https://github.com/againstentropy/song-rec","last_synced_at":"2025-11-03T10:30:40.698Z","repository":{"id":267721510,"uuid":"894154652","full_name":"AgainstEntropy/song-rec","owner":"AgainstEntropy","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-13T17:28:34.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-27T04:13:34.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AgainstEntropy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-25T21:12:55.000Z","updated_at":"2024-12-13T17:28:38.000Z","dependencies_parsed_at":"2024-12-12T03:26:09.980Z","dependency_job_id":"08530704-6a06-44f7-a3da-e771d3e8665f","html_url":"https://github.com/AgainstEntropy/song-rec","commit_stats":null,"previous_names":["againstentropy/song-rec"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgainstEntropy%2Fsong-rec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgainstEntropy%2Fsong-rec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgainstEntropy%2Fsong-rec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgainstEntropy%2Fsong-rec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgainstEntropy","download_url":"https://codeload.github.com/AgainstEntropy/song-rec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412448,"owners_count":19634016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T04:13:35.306Z","updated_at":"2025-02-18T05:19:12.581Z","avatar_url":"https://github.com/AgainstEntropy.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Song-Rec\n\nClone this repo:\n\n```bash\ngit clone --recurse-submodules https://github.com/AgainstEntropy/song-rec.git\n```\n\nIf for some reason the submodules are not cloned, run:\n\n```bash\ncd song-rec\ngit submodule update --init --recursive\n```\n\n## Project Structure\n\n```bash\nsong-rec                        # Root directory\n├── README.md\n├── requirements.txt            # Python dependencies\n├── embed.py                    # Embed the data\n├── song_recommender.py         # Streamlit app\n├── test_query.ipynb            # Test the query\n├── data                        # Raw data\n│   └── spotify_millsongdata.csv\n├── embeddings                  # Pre-computed embeddings\n│   └── jina-embeddings-v3_retrieval.passage.npy\n├── models                      # Model files\n│   └── jina-embeddings-v3\n└── xlm_roberta                 # Hugging Face model files\n```\n\n## Installation\n\n```bash\npip install -r requirements.txt\n```\n\nTo use Flash-Attention:\n\n```bash\npip install flash-attn --no-build-isolation\n```\n\n### Download the model\n\n```bash\nhuggingface-cli download jinaai/jina-embeddings-v3 --local-dir ./models/jina-embeddings-v3\n```\n\n### Embed the data\n\nYou can either create the embeddings from the raw data:\n\n```bash\npython embed.py\n```\n\nOr download the pre-computed embeddings from [Google Drive](https://drive.google.com/drive/folders/1zcZejtGsIWJz39vXnr-XExmu6DWRItte?usp=sharing) and put it in `./embeddings/` folder.\n\n## Test query\n\nFollow the blocks in [`test_query.ipynb`](./test_query.ipynb).\n\n## Run the app\n\n```bash\nstreamlit run song_recommender.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagainstentropy%2Fsong-rec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagainstentropy%2Fsong-rec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagainstentropy%2Fsong-rec/lists"}