{"id":20031853,"url":"https://github.com/wtnabe/example-simple-vector-search-with-annoy-rb","last_synced_at":"2026-06-09T19:31:16.891Z","repository":{"id":216113670,"uuid":"740412753","full_name":"wtnabe/example-simple-vector-search-with-annoy-rb","owner":"wtnabe","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-08T13:32:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T05:27:53.163Z","etag":null,"topics":["annoy","latlng","ruby","vector-search"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtnabe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T09:46:33.000Z","updated_at":"2024-03-24T02:13:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"82e2d214-377a-4754-b122-2fa7902d99aa","html_url":"https://github.com/wtnabe/example-simple-vector-search-with-annoy-rb","commit_stats":null,"previous_names":["wtnabe/example-simple-vector-search-with-annoy-rb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wtnabe/example-simple-vector-search-with-annoy-rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-simple-vector-search-with-annoy-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-simple-vector-search-with-annoy-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-simple-vector-search-with-annoy-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-simple-vector-search-with-annoy-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtnabe","download_url":"https://codeload.github.com/wtnabe/example-simple-vector-search-with-annoy-rb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-simple-vector-search-with-annoy-rb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34123171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["annoy","latlng","ruby","vector-search"],"created_at":"2024-11-13T09:34:57.753Z","updated_at":"2026-06-09T19:31:16.875Z","avatar_url":"https://github.com/wtnabe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## annoy-rbを用いた最も身近で最も素朴なベクトル検索の練習\n\n### 準備するもの\n\n * Ruby\n * [yoshoku/annoy\\-rb: annoy\\-rb provides Ruby bindings for the Annoy \\(Approximate Nearest Neighbors Oh Yeah\\)\\.](https://github.com/yoshoku/annoy-rb)\n\n### できること\n\n日本国内の各都道府県の人口上位3都市（ChatGPT調べ）の緯度経度を持つデータベースから、与えた緯度経度に近い順に都市を列挙する\n\n### 使い方\n\n全部ターミナルで頑張って😉\n\n  1. install dependencies\n\n```\n$ bundle install\n```\n\n 2. prepare annoy index\n\n```\n$ bundle exec ruby app.rb prepare\n```\n\n 3. search longitude, latitude\n\ncopy longitude and latitude from Google Maps, etc...\n\n```\n$ bundle exec ruby app.rb 36.561126595665904, 136.65658579973413\n```\n\n### 注意\n\n 1. 自分の身近な場所を題材にするとそりゃそうだという結果しか得られないので面白くない🙃\n 2. 各都市の緯度軽度の情報は嘘が紛れている可能性がありますというか、2024-01-08 生成時点で石川県松任市が含まれているので、あくまで雰囲気で楽しむこと\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fexample-simple-vector-search-with-annoy-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtnabe%2Fexample-simple-vector-search-with-annoy-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fexample-simple-vector-search-with-annoy-rb/lists"}