{"id":21994431,"url":"https://github.com/codelibs/sparse-encoding-api","last_synced_at":"2025-03-23T04:13:56.468Z","repository":{"id":233557476,"uuid":"772882608","full_name":"codelibs/sparse-encoding-api","owner":"codelibs","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T06:14:59.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T10:36:18.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/codelibs.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}},"created_at":"2024-03-16T06:13:58.000Z","updated_at":"2024-04-01T23:43:19.000Z","dependencies_parsed_at":"2024-04-16T18:27:38.423Z","dependency_job_id":null,"html_url":"https://github.com/codelibs/sparse-encoding-api","commit_stats":null,"previous_names":["codelibs/sparse-encoding-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsparse-encoding-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsparse-encoding-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsparse-encoding-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsparse-encoding-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelibs","download_url":"https://codeload.github.com/codelibs/sparse-encoding-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052673,"owners_count":20553172,"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":[],"created_at":"2024-11-29T21:08:54.028Z","updated_at":"2025-03-23T04:13:56.427Z","avatar_url":"https://github.com/codelibs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sparse Encoding Server\n\n## Getting Started\n\n### Run Docker\n\n```\ndocker run -p 8080:8080 -it ghcr.io/codelibs/sparse-encoding-api:1.0.0\n```\n\n### Run Docker with Model Name\n\n```\ndocker run -p 8080:8080 -e MODEL_NAME=naver/splade_v2_max -it ghcr.io/codelibs/sparse-encoding-api:1.0.0\n```\n\n### Use Model Cache\n\n```\ndocker run -v ./model:/code/model -p 8080:8080 -it ghcr.io/codelibs/sparse-encoding-api:1.0.0\n```\n\n### Run Docker with GPU\n\n```\ndocker run --gpus all -p 8080:8080 -it ghcr.io/codelibs/sparse-encoding-api:1.0.0.cuda11\n```\n\n## Request\n\n### Embedding API\n\n```\ncurl -s -H \"Content-Type:application/json\" -XPOST localhost:8080/encode -d '\n{\n  \"sentences\": [\n    \"This framework generates embeddings for each input sentence\",\n    \"Sentences are passed as a list of string.\",\n    \"The quick brown fox jumps over the lazy dog.\"\n  ]\n}'\n```\n\n### Information API\n\n```\ncurl -s -H \"Content-Type:application/json\" -XGET localhost:8080/\n```\n\n### Ping API\n\n```\ncurl -s -H \"Content-Type:application/json\" -XGET localhost:8080/ping\n```\n\n## Build\n\n### Build Docker\n\n```\ndocker build --rm -t ghcr.io/codelibs/sparse-encoding-api:1.0.0 .\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Fsparse-encoding-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelibs%2Fsparse-encoding-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Fsparse-encoding-api/lists"}