{"id":20282375,"url":"https://github.com/redisai/jredisai","last_synced_at":"2025-06-27T21:37:43.823Z","repository":{"id":45079057,"uuid":"166841165","full_name":"RedisAI/JRedisAI","owner":"RedisAI","description":"Java client for RedisAI","archived":false,"fork":false,"pushed_at":"2024-10-03T18:52:24.000Z","size":28170,"stargazers_count":12,"open_issues_count":9,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T05:36:39.400Z","etag":null,"topics":["java-client","onnxruntime","pytorch","redisai","tensorflow"],"latest_commit_sha":null,"homepage":"https://redisai.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisAI.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}},"created_at":"2019-01-21T15:59:30.000Z","updated_at":"2024-09-05T09:31:18.000Z","dependencies_parsed_at":"2023-01-22T03:17:05.340Z","dependency_job_id":null,"html_url":"https://github.com/RedisAI/JRedisAI","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisAI%2FJRedisAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisAI%2FJRedisAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisAI%2FJRedisAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisAI%2FJRedisAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisAI","download_url":"https://codeload.github.com/RedisAI/JRedisAI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360179,"owners_count":21090661,"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":["java-client","onnxruntime","pytorch","redisai","tensorflow"],"created_at":"2024-11-14T14:09:08.347Z","updated_at":"2025-04-11T08:01:49.010Z","avatar_url":"https://github.com/RedisAI.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/RedisAI/JRedisAI.svg)](https://github.com/RedisAI/JRedisAI)\n[![CircleCI](https://circleci.com/gh/RedisAI/JRedisAI/tree/master.svg?style=svg)](https://circleci.com/gh/RedisAI/JRedisAI/tree/master)\n[![GitHub issues](https://img.shields.io/github/release/RedisAI/JRedisAI.svg)](https://github.com/RedisAI/JRedisAI/releases/latest)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.redislabs/jredisai/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.redislabs/jredisai)\n[![Javadocs](https://www.javadoc.io/badge/com.redislabs/jredisai.svg)](https://www.javadoc.io/doc/com.redislabs/jredisai)\n[![codecov](https://codecov.io/gh/RedisAI/JRedisAI/branch/master/graph/badge.svg?token=cC4H2TvQHs)](https://codecov.io/gh/RedisAI/JRedisAI)\n[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/RedisAI/JRedisAI.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/RedisAI/JRedisAI/context:java)\n[![Known Vulnerabilities](https://snyk.io/test/github/RedisAI/JRedisAI/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/RedisAI/JRedisAI?targetFile=pom.xml)\n\n\n# JRedisAI\n[![Forum](https://img.shields.io/badge/Forum-RedisAI-blue)](https://forum.redislabs.com/c/modules/redisai)\n[![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/rTQm7UZ)\n\nJava client for RedisAI\n\n### Official Releases\n\n```xml\n  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.redislabs\u003c/groupId\u003e\n      \u003cartifactId\u003ejredisai\u003c/artifactId\u003e\n      \u003cversion\u003e0.9.0\u003c/version\u003e\n    \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n```\n\n### Snapshots\n\n```xml\n  \u003crepositories\u003e\n    \u003crepository\u003e\n      \u003cid\u003esnapshots-repo\u003c/id\u003e\n      \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n    \u003c/repository\u003e\n  \u003c/repositories\u003e\n```\n\nand\n\n```xml\n  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.redislabs\u003c/groupId\u003e\n      \u003cartifactId\u003ejredisai\u003c/artifactId\u003e\n      \u003cversion\u003e1.0.0-SNAPSHOT\u003c/version\u003e\n    \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n```\n\n# Example: Using the Java Client\n\n```java\n   RedisAI client = new RedisAI(\"localhost\", 6379);\n   client.setModel(\"model\", Backend.TF, Device.CPU, new String[] {\"a\", \"b\"}, new String[] {\"mul\"}, \"graph.pb\");\n    \n   client.setTensor(\"a\", new float[] {2, 3}, new int[]{2});\n   client.setTensor(\"b\", new float[] {2, 3}, new int[]{2});\n\n   client.runModel(\"model\", new String[] {\"a\", \"b\"}, new String[] {\"c\"});\n```\n\n## Note\n\n**Chunk size:** Since version `0.10.0`, the chunk size of model (blob) is set to 512mb (536870912 bytes) based on \ndefault Redis configuration. This behavior can be changed by `redisai.blob.chunkSize` system property at the beginning \nof the application. For example, chunk size can be limited to 8mb by setting `-Dredisai.blob.chunkSize=8388608` or \n`System.setProperty(Model.BLOB_CHUNK_SIZE_PROPERTY, \"8388608\");`. A limit of 0 (zero) would disable chunking.\n\n**Socket timeout:** Operations with large data and/or long processing time may require a higher socket timeout. \nFollowing constructor may come in handy for that purpose.\n```\n  HostAndPort hostAndPort = new HostAndPort(host, port);\n  JedisClientConfig clientConfig = DefaultJedisClientConfig.builder().socketTimeoutMillis(largeTimeout).build();\n  new RedisAI(hostAndPort, clientConfig);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredisai%2Fjredisai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredisai%2Fjredisai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredisai%2Fjredisai/lists"}