{"id":21575730,"url":"https://github.com/eto-ai/rikai-pg","last_synced_at":"2025-07-21T15:02:34.199Z","repository":{"id":38210934,"uuid":"490789436","full_name":"eto-ai/rikai-pg","owner":"eto-ai","description":"Postgres Rikai Extension","archived":false,"fork":false,"pushed_at":"2022-06-11T05:09:36.000Z","size":58,"stargazers_count":6,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T16:50:06.583Z","etag":null,"topics":["deep-learning","machine-learning","postgresql","pytorch","rikai","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eto-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-10T17:04:10.000Z","updated_at":"2024-06-30T14:02:28.000Z","dependencies_parsed_at":"2022-09-04T18:02:06.957Z","dependency_job_id":null,"html_url":"https://github.com/eto-ai/rikai-pg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eto-ai/rikai-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eto-ai%2Frikai-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eto-ai%2Frikai-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eto-ai%2Frikai-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eto-ai%2Frikai-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eto-ai","download_url":"https://codeload.github.com/eto-ai/rikai-pg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eto-ai%2Frikai-pg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266324294,"owners_count":23911226,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deep-learning","machine-learning","postgresql","pytorch","rikai","tensorflow"],"created_at":"2024-11-24T12:14:06.994Z","updated_at":"2025-07-21T15:02:34.158Z","avatar_url":"https://github.com/eto-ai.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postgres Rikai Extension\n\nStatus: Proof of concept\n\n```sh\npip install rikai\nmake install\n```\n\n## Usage\n\nTo load `rikai` PostgreSQL extension\n\n```sql\nCREATE EXTENSION plpython3u;\nCREATE EXTENSION rikai;\n```\n\nCreate a model via `INSERT INTO`\n\n```sql\nINSERT INTO ml.models\n(name, flavor, model_type, uri)\nVALUES\n('cat_detector', 'pytorch', 'ssd', 's3://bucket/to/cat.pth')\n```\n\nA function `ml.\u003cmodel_name\u003e` will be created after model insertation.\n\nTo use the registered model for inference:\n\n```sql\nSELECT ml.cat_detector(image) FROM cat_dataset\n```\n\nShow all registered models:\n\n```sql\nSELECT * FROM ml.models;\n```\n\n## Local development\n\n```sh\n# Build and run docker image, prepare testing data and load a model.\n$ make run\n\n# Connect to postgres\n\n$ psql -h localhost -U postgres\n```\n\n## TODOs\n\n- [ ] Support classification models\n- [ ] Release and installation\n\n## Limitations\n\n- `rikai` needs to be installed with the system python.\n- Batch inference.\n- Not ready for production yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feto-ai%2Frikai-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feto-ai%2Frikai-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feto-ai%2Frikai-pg/lists"}