{"id":30188693,"url":"https://github.com/rhecosystemappeng/rec-sys-app","last_synced_at":"2026-01-20T17:10:03.581Z","repository":{"id":285379864,"uuid":"955406374","full_name":"RHEcosystemAppEng/rec-sys-app","owner":"RHEcosystemAppEng","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-31T07:58:34.000Z","size":45429,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-12T17:53:53.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/RHEcosystemAppEng.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,"zenodo":null}},"created_at":"2025-03-26T15:33:06.000Z","updated_at":"2025-07-31T07:58:38.000Z","dependencies_parsed_at":"2025-07-31T09:36:40.493Z","dependency_job_id":null,"html_url":"https://github.com/RHEcosystemAppEng/rec-sys-app","commit_stats":null,"previous_names":["rhecosystemappeng/rec-sys-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RHEcosystemAppEng/rec-sys-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Frec-sys-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Frec-sys-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Frec-sys-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Frec-sys-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RHEcosystemAppEng","download_url":"https://codeload.github.com/RHEcosystemAppEng/rec-sys-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Frec-sys-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-08-12T17:45:55.987Z","updated_at":"2026-01-20T17:10:03.561Z","avatar_url":"https://github.com/RHEcosystemAppEng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recommendation System Application\n## Overview\nThis application implements a recommendation system using a two-tower neural network architecture, integrated with Feast for feature management. It generates synthetic datasets for users, items, and interactions, trains a model to produce user and item embeddings, and provides personalized item recommendations. \n\n## Features\n\n* Data Generation: Creates synthetic datasets and images under `generation` directory\n* Feature Store: Utilizes Feast to manage and serve features, with configurations defined in feature_repo/.\n* Model Training: Trains a two-tower model (UserTower and ItemTower) to generate embeddings, implemented in models/.\n* Filtering: Applies rule-based filtering (availability, demographic, history, and contextual) to refine recommendations (models/filtering.py).\n\n## Data generation\n\nThe application includes two main data generation components:\n\n### Dataset Generation (`dataset_gen_amazon.py`)\n\nGenerates synthetic e-commerce data including:\n\n* Users: Creates user profiles with IDs, signup dates, and category preferences\n* Items: Generates product data with categories, prices, ratings, and descriptions based on Amazon-like structure\n* Interactions: Simulates user-item interactions (views, purchases, ratings) with preference-based bias\n\nThe generated data is saved in parquet format under `feature_repo/data/`:\n* `recommendation_users.parquet`\n* `recommendation_items.parquet`\n* `recommendation_interactions.parquet`\n\n```bash\n# Generate synthetic data\npython generation/dataset_gen_amazon.py --n_users 1000 --n_items 5000 --n_interactions 20000\n```\n\n### Image Generation (`generate_images.py`)\n\nGenerates product images using Stable Diffusion:\n\n* Uses the RunwayML Stable Diffusion v1.5 model\n* Creates images based on product descriptions\n* Supports both CPU and CUDA-enabled GPU processing\n* Saves generated images in PNG format under `generation/data/generated_images/`\n\nTo generate the datasets, run:\n\n```bash\n# Generate product images (requires PyTorch and diffusers)\npython generation/generate_images.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhecosystemappeng%2Frec-sys-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhecosystemappeng%2Frec-sys-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhecosystemappeng%2Frec-sys-app/lists"}