{"id":28042424,"url":"https://github.com/egorsmkv/ai-find-similar-objects","last_synced_at":"2025-05-11T14:47:07.126Z","repository":{"id":273132479,"uuid":"918775151","full_name":"egorsmkv/ai-find-similar-objects","owner":"egorsmkv","description":"Rust in Action: embed your images into Qdrant and search similar objects using Rust and AI","archived":false,"fork":false,"pushed_at":"2025-01-18T22:13:15.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T22:26:59.382Z","etag":null,"topics":["ai","computer-vision","python","qdrant","rust","tus","yolo"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/egorsmkv.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":"2025-01-18T20:25:27.000Z","updated_at":"2025-01-18T22:13:36.000Z","dependencies_parsed_at":"2025-01-18T22:38:22.242Z","dependency_job_id":null,"html_url":"https://github.com/egorsmkv/ai-find-similar-objects","commit_stats":null,"previous_names":["egorsmkv/ai-find-similar-objects"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Fai-find-similar-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Fai-find-similar-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Fai-find-similar-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Fai-find-similar-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egorsmkv","download_url":"https://codeload.github.com/egorsmkv/ai-find-similar-objects/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253584281,"owners_count":21931543,"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":["ai","computer-vision","python","qdrant","rust","tus","yolo"],"created_at":"2025-05-11T14:47:06.345Z","updated_at":"2025-05-11T14:47:07.115Z","avatar_url":"https://github.com/egorsmkv.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Rust in Action`: embed your images into Qdrant and search similar objects using Rust and AI\n\n## Overview\n\n### Goal\n\nShow how you can use Rust in the AI field to find similar objects in a vector database.\n\nAlso, join our Telegram group about Computer Vision: https://t.me/computer_vision_uk\n\n### Algorithm\n\n1. Upload an image using [TUS protocol][4]\n2. Detect objects on the image using [YOLO 11][3]\n3. [Embed][1] each object using [**nomic-embed-vision-v1.5**][2] and save a vector into **Qdrant** with metadata\n4. Upload own object to find similar ones\n\n### Components\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see the list\u003c/summary\u003e\n\n---\n\nBackend:\n\n  - https://github.com/s3rius/rustus\n  - https://github.com/actix/actix-web\n  - https://github.com/qdrant/qdrant\n  - https://github.com/qdrant/rust-client\n  - https://github.com/Anush008/fastembed-rs\n  - https://github.com/egorsmkv/yolo-inference\n  - https://github.com/svenstaro/miniserve\n\nFrontend:\n\n  - https://github.com/gradio-app/gradio\n\nDevtools:\n\n  - https://github.com/astral-sh/uv\n  - https://github.com/astral-sh/ruff\n  - https://github.com/casey/just\n  - https://github.com/goreleaser/goreleaser\n  - https://github.com/evilmartians/lefthook\n\n\u003c/details\u003e\n\n## Install\n\n### Install Rust\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n\nrustup toolchain install nightly\n\nrustup default nightly\n```\n\n### Install `uv`\n\n```bash\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n```\n\n### Install `just`\n\n```bash\ncargo install just\n```\n\n### Install `GoReleaser`\n\nBasically, GoReleaser was written to release Go projects but they have added Rust support recently.\n\nRead their docs about [installation process][5].\n\n```bash\ngo install github.com/goreleaser/goreleaser/v2@latest\n```\n\n## Run\n\n### Backend\n\n#### Install \u0026 Run the TUS server\n\n```bash\ncargo install rustus\n\ncd backend/rustus\n\ncp .env.example .env.dev\n\njust run\n```\n\n#### Install \u0026 Run the Qdrant server\n\n```bash\ncd backend/qdrant\n\ncp .env.example .env.dev\n\njust run\n```\n\n#### Install `miniserve`\n\n```bash\ncargo install miniserve\n\nminiserve --interfaces 0.0.0.0 --port 8099 ./backend/rustus/data\n```\n\n### Frontend\n\n```bash\ncd frontend/\n\n# create virtual environment\nuv venv --python 3.12\n\nsource .venv/bin/activate\n\n# install all dependencies\njust sync\n\n# start Gradio app\njust run\n```\n\n### Development\n\n#### Install `ruff`\n\n```bash\nuv tool install ruff@latest\n```\n\n#### Install `lefthook`\n\n```bash\ngo install github.com/evilmartians/lefthook@latest\n\nlefthook install\n```\n\n---\n\nFeel free to open an issue if you want to improve this project.\n\n[1]: https://en.wikipedia.org/wiki/Word_embedding\n[2]: https://huggingface.co/nomic-ai/nomic-embed-vision-v1.5\n[3]: https://docs.ultralytics.com/models/yolo11/\n[4]: https://tus.io/\n[5]: https://goreleaser.com/install/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorsmkv%2Fai-find-similar-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegorsmkv%2Fai-find-similar-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorsmkv%2Fai-find-similar-objects/lists"}