{"id":29189886,"url":"https://github.com/edilchristian/vector-service-java","last_synced_at":"2026-05-02T05:04:43.949Z","repository":{"id":302345787,"uuid":"1012107199","full_name":"edilchristian/vector-service-java","owner":"edilchristian","description":"Java + Spring Boot service for serving vector embeddings (for personalization \u0026 discovery systems)","archived":false,"fork":false,"pushed_at":"2025-07-01T21:30:26.000Z","size":17288,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-01T22:27:00.116Z","etag":null,"topics":["api","backend","content-discovery","embeddings","java","personalization","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/edilchristian.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-07-01T20:29:34.000Z","updated_at":"2025-07-01T21:41:07.000Z","dependencies_parsed_at":"2025-07-01T22:37:17.868Z","dependency_job_id":null,"html_url":"https://github.com/edilchristian/vector-service-java","commit_stats":null,"previous_names":["edilchristian/vector-service-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edilchristian/vector-service-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edilchristian%2Fvector-service-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edilchristian%2Fvector-service-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edilchristian%2Fvector-service-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edilchristian%2Fvector-service-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edilchristian","download_url":"https://codeload.github.com/edilchristian/vector-service-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edilchristian%2Fvector-service-java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047686,"owners_count":23405280,"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":["api","backend","content-discovery","embeddings","java","personalization","spring-boot"],"created_at":"2025-07-01T23:18:18.470Z","updated_at":"2026-05-02T05:04:38.930Z","avatar_url":"https://github.com/edilchristian.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vector-service-java\n\nA lightweight Java + Spring Boot service that serves vector embeddings for content IDs — simulating real-world personalization and content discovery infrastructure, similar to systems used at Pinterest.\n\n## Features\n\n- Java + Spring Boot REST API  \n- In-memory retrieval of mock content embeddings  \n- Clean Maven build structure  \n- Easily extensible for recommendation or search applications\n\n## API Example\n\n**Request:**\n\n```\nGET /embedding/plant_decor_pin\n```\n\n**Response:**\n\n```json\n{\n  \"contentId\": \"plant_decor_pin\",\n  \"vector\": [0.12, 0.34, 0.56, 0.78]\n}\n```\n\n## How to Run\n\n1. **Install Java 17+ and Maven**\n\n2. **Clone this repository**\n\n   ```bash\n   git clone https://github.com/edilchristian/vector-service-java.git\n   cd vector-service-java\n   ```\n\n3. **Run the service**\n\n   ```bash\n   mvn spring-boot:run\n   ```\n\n   The API will be available at:\n\n   ```\n   http://localhost:8080\n   ```\n\n## Context\n\nThis project simulates how vector embeddings might be served in real-world systems for use cases such as:\n\n- Personalized content feeds  \n- Visual search infrastructure  \n- Content similarity and clustering  \n- Retrieval-augmented generation (RAG) workflows\n\nIn real systems, vector dimensions are often 128D, 256D, or even 768D (e.g. BERT-based encodings). This service is designed to simulate that retrieval layer in a minimal, standalone way.\n\n## Project Structure\n\n```\nsrc/\n├── main/\n│   ├── java/com/example/vectorservice/\n│   │   ├── controller/\n│   │   └── service/\n│   └── resources/\n│       └── mock_embeddings.json\npom.xml\n```\n\n---\n\nCreated by [@edilchristian](https://github.com/edilchristian)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedilchristian%2Fvector-service-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedilchristian%2Fvector-service-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedilchristian%2Fvector-service-java/lists"}