{"id":30267315,"url":"https://github.com/indrabayuu/rust-embedding-service","last_synced_at":"2026-04-17T01:02:08.177Z","repository":{"id":307846846,"uuid":"1030875957","full_name":"indrabayuu/rust-embedding-service","owner":"indrabayuu","description":"A microservice for generating embeddings built on top of Rust using FastEmbed with gRPC protocol","archived":false,"fork":false,"pushed_at":"2025-08-02T14:22:13.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T07:12:22.778Z","etag":null,"topics":["embedding","fastembed","grpc","microservice","rust"],"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/indrabayuu.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-08-02T14:15:26.000Z","updated_at":"2025-08-02T14:24:26.000Z","dependencies_parsed_at":"2025-08-02T16:27:39.937Z","dependency_job_id":"73b9e73e-9177-45c0-a4d9-6ba9c4eede9d","html_url":"https://github.com/indrabayuu/rust-embedding-service","commit_stats":null,"previous_names":["bayyy7/rust-embedding-service","indrabayuu/rust-embedding-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/indrabayuu/rust-embedding-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indrabayuu%2Frust-embedding-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indrabayuu%2Frust-embedding-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indrabayuu%2Frust-embedding-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indrabayuu%2Frust-embedding-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indrabayuu","download_url":"https://codeload.github.com/indrabayuu/rust-embedding-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indrabayuu%2Frust-embedding-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["embedding","fastembed","grpc","microservice","rust"],"created_at":"2025-08-15T23:32:33.268Z","updated_at":"2026-04-17T01:02:08.115Z","avatar_url":"https://github.com/indrabayuu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust gRPC Embedding Service with FastEmbed\n\nA high-performance gRPC-based embedding service built in Rust using FastEmbed and the `sentence-transformers/paraphrase-MiniLM-L12-v2` model. You can change to others model by modify the code on `main.py`:\n\n```rust\nInitOptions::new(EmbeddingModel::ParaphraseMLMiniLML12V2Q)\n```\n\n# Features\n\n- **Fast \u0026 Lightweight**: Built in Rust for optimal performance and low resource consumption\n- **gRPC API**: Efficient binary protocol for client-server communication\n- **Flexible Input**: Supports both single text and batch processing\n- **ONNX Model**: Uses FastEmbed with ONNX runtime for fast inference\n- **Configurable**: Environment-based configuration for easy deployment\n\n# Quick Start\n\n## 1. Build from Code\n\n### Prerequisites\n\n- Rust (latest stable version)\n- Protocol Buffers compiler (`protoc`)\n\n1. Create a `.env` with values:\n\n```bash\nAPP_SERVER_ADDRESS=0.0.0.0:6010\n```\n\n2. Build the project:\n\n```bash\ncargo build --release\n```\n\n3. Start the server:\n\n```bash\ncargo run --bin server\n```\n\nThe server will start on `127.0.0.1:6010` by default and download the embedding model on first run.\n\n## 2. Build from DockerFile\n\n1. Create a `.env` with values:\n\n```bash\nAPP_SERVER_ADDRESS=0.0.0.0:6010\n```\n\n2. Change the `\u003cyour_image_name\u003e` with your desired name and run it:\n\n```bash\ndocker build -t \u003cyour_image_name\u003e:latest .\n```\n\n## 3. Running from Docker Compose (Recommended)\n\n```bash\ndocker compose up --build -d\n```\n\n## API Reference\n\n### gRPC Service: `EmbeddingService`\n\n#### Method: `GetEmbeddings`\n\n**Request** (`EmbeddingRequest`):\n\n```protobuf\nmessage EmbeddingRequest {\n  oneof input {\n    string single_text = 1;        // Single text input\n    TextBatch batch_texts = 2;     // Batch text input\n  }\n}\n\nmessage TextBatch {\n  repeated string texts = 1;\n}\n```\n\n**Response** (`EmbeddingResponse`):\n\n```protobuf\nmessage EmbeddingResponse {\n  repeated Vector vectors = 1;\n}\n\nmessage Vector {\n  repeated float values = 1;\n}\n```\n\n## Performance Notes\n\n- The service loads the model once at startup for optimal performance\n- FastEmbed uses ONNX runtime for efficient inference\n- Batch processing is recommended for multiple texts to reduce overhead\n- Model files are cached locally after first download\n\n## Created by:\n\n### Rizky Indrabayu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findrabayuu%2Frust-embedding-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findrabayuu%2Frust-embedding-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findrabayuu%2Frust-embedding-service/lists"}