{"id":29767068,"url":"https://github.com/patw/imagevoyage","last_synced_at":"2026-05-15T12:32:02.127Z","repository":{"id":305734051,"uuid":"1023691699","full_name":"patw/ImageVoyage","owner":"patw","description":"Generates dense vector embeddings for images using VoyageAI's multimodal embedding model","archived":false,"fork":false,"pushed_at":"2025-07-21T17:36:16.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-21T19:33:37.427Z","etag":null,"topics":["fastapi","voyageai"],"latest_commit_sha":null,"homepage":"https://docs.voyageai.com/docs/multimodal-embeddings","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patw.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,"zenodo":null}},"created_at":"2025-07-21T14:43:34.000Z","updated_at":"2025-07-21T17:36:20.000Z","dependencies_parsed_at":"2025-07-21T19:43:59.243Z","dependency_job_id":null,"html_url":"https://github.com/patw/ImageVoyage","commit_stats":null,"previous_names":["patw/imagevoyage"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/patw/ImageVoyage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FImageVoyage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FImageVoyage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FImageVoyage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FImageVoyage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patw","download_url":"https://codeload.github.com/patw/ImageVoyage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FImageVoyage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267283135,"owners_count":24064022,"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-26T02:00:08.937Z","response_time":62,"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":["fastapi","voyageai"],"created_at":"2025-07-27T01:37:28.638Z","updated_at":"2026-05-15T12:31:57.102Z","avatar_url":"https://github.com/patw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageVoyage 🚀📸\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nImageVoyage is a FastAPI service that generates dense vector embeddings for images using VoyageAI's multimodal embedding model, and calculates similarity between images.\n\n## Features\n\n- Generate vector embeddings for:\n  - Images from file uploads\n  - Images from public URLs\n  - Text strings\n- Calculate similarity between:\n  - Two images\n  - Image and text\n  Using:\n  - Euclidean distance\n  - Dot product\n  - Cosine similarity\n\n## Quick Start\n\n### Prerequisites\n\n- Python 3.8+\n- [uv](https://github.com/astral-sh/uv) (modern Python package installer)\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/patw/ImageVoyage.git\ncd ImageVoyage\n```\n\n2. Create and activate a virtual environment (recommended):\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n```\n\n3. Install dependencies with uv:\n```bash\nuv pip install -r requirements.txt\n```\n\n3. Set your VoyageAI API key as an environment variable:\n```bash\nexport VOYAGE_API_KEY=\"your-api-key-here\"\n```\n\n### Running the Service\n\nStart the FastAPI server:\n```bash\nuvicorn main:app --reload\n```\n\nThe API documentation will be available at: http://localhost:8000/docs\n\n## API Endpoints\n\n- `POST /upload_image_vector` - Generate embedding from uploaded image file\n- `POST /url_image_vector` - Generate embedding from image URL\n- `POST /text_vector` - Generate embedding from text string\n- `POST /upload_image_image_similarity` - Compare two uploaded images\n- `POST /url_image_image_similarity` - Compare two images from URLs\n- `POST /upload_image_text_similarity` - Compare uploaded image with text\n- `POST /url_image_text_similarity` - Compare URL image with text\n\n## Example Usage\n\n```python\nimport requests\n\n# Get embedding from URL\nresponse = requests.post(\n    \"http://localhost:8000/url_image_vector\",\n    json={\"image_url\": \"https://example.com/image.jpg\"}\n)\nprint(response.json())\n\n# Compare two images\nresponse = requests.post(\n    \"http://localhost:8000/url_image_image_similarity\",\n    json={\n        \"image_url1\": \"https://example.com/image1.jpg\",\n        \"image_url2\": \"https://example.com/image2.jpg\"\n    }\n)\nprint(response.json())\n\n# Compare image with text\nresponse = requests.post(\n    \"http://localhost:8000/url_image_text_similarity\",\n    json={\n        \"image_url\": \"https://example.com/image.jpg\",\n        \"text\": \"a sunset over the ocean\"\n    }\n)\nprint(response.json())\n\n# Get text embedding\nresponse = requests.post(\n    \"http://localhost:8000/text_vector\",\n    json={\"text\": \"a beautiful landscape\"}\n)\nprint(response.json())\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Author\n\n👤 **Pat Wendorf**\n- GitHub: [@patw](https://github.com/patw)\n- Email: pat.wendorf@mongodb.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatw%2Fimagevoyage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatw%2Fimagevoyage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatw%2Fimagevoyage/lists"}