{"id":21094007,"url":"https://github.com/epsilla-cloud/epsilla-javascript-client","last_synced_at":"2025-03-14T07:08:41.333Z","repository":{"id":186461179,"uuid":"675124456","full_name":"epsilla-cloud/epsilla-javascript-client","owner":"epsilla-cloud","description":"A ts/js library to connect Epsilla Vector Database","archived":false,"fork":false,"pushed_at":"2024-04-19T03:01:53.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T04:47:20.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.epsilla.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epsilla-cloud.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}},"created_at":"2023-08-05T21:33:02.000Z","updated_at":"2024-11-28T02:25:01.000Z","dependencies_parsed_at":"2024-03-20T11:49:17.992Z","dependency_job_id":"a80abe6e-6072-4586-9af5-3562e6f94108","html_url":"https://github.com/epsilla-cloud/epsilla-javascript-client","commit_stats":null,"previous_names":["epsilla-cloud/epsillajs","epsilla-cloud/epsilla-javascript-client"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsilla-cloud%2Fepsilla-javascript-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsilla-cloud%2Fepsilla-javascript-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsilla-cloud%2Fepsilla-javascript-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsilla-cloud%2Fepsilla-javascript-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epsilla-cloud","download_url":"https://codeload.github.com/epsilla-cloud/epsilla-javascript-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538139,"owners_count":20307104,"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-19T22:15:41.292Z","updated_at":"2025-03-14T07:08:41.315Z","avatar_url":"https://github.com/epsilla-cloud.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epsillaJS\nA typescript/javascript library to connect Epsilla vector database\n\n## 1. Installation\n```shell\nnpm install epsillajs\n```\n\n## 2.Quick Start\n\n### 2.1 Run epsilla vectordb on localhost\n```shell\ndocker pull epsilla/vectordb\ndocker run -d -p 8888:8888 epsilla/vectordb\n```\n\n### 2.2 Use epsillaJS to connect to and interact with vector database\n\n```javascript\nconst epsillajs = require('epsillajs');\n\n// connect to vectordb\nconst db = new epsillajs.EpsillaDB();\n\n// load and use a database\nconst db_path = 'tmp/epsilla';\nconst load = await db.loadDB(db_path, 'MyDB');\ndb.useDB(\"MyDB\");\n\n// create a table in the current database\nawait db.createTable('MyTable',\n  [\n    {\"name\": \"ID\", \"dataType\": \"INT\"},\n    {\"name\": \"Doc\", \"dataType\": \"STRING\"},\n    {\"name\": \"Embedding\", \"dataType\": \"VECTOR_FLOAT\", \"dimensions\": 4}\n  ]\n);\n\n// insert records\nawait db.insert('MyTable',\n  [\n    {\"ID\": 1, \"Doc\": \"Berlin\", \"Embedding\": [0.05, 0.61, 0.76, 0.74]},\n    {\"ID\": 2, \"Doc\": \"London\", \"Embedding\": [0.19, 0.81, 0.75, 0.11]},\n    {\"ID\": 3, \"Doc\": \"Moscow\", \"Embedding\": [0.36, 0.55, 0.47, 0.94]},\n    {\"ID\": 4, \"Doc\": \"San Francisco\", \"Embedding\": [0.18, 0.01, 0.85, 0.80]},\n    {\"ID\": 5, \"Doc\": \"Shanghai\", \"Embedding\": [0.24, 0.18, 0.22, 0.44]}\n  ]\n);\n\n// search\nconst query = await db.query('MyTable',\n  {\n    queryField: \"Embedding\",\n    queryVector: [0.35, 0.55, 0.47, 0.94],\n    limit: 5\n  } // response fields, filter and with distance are optional\n);\n\n// drop a table\nawait db.dropTable('MyTable');\n\n// unload a database from memory\nawait db.unloadDB('MyDB');\n```\n\n## We love your \u003ca href=\"https://forms.gle/z73ra1sGBxH9wiUR8\"\u003eFeedback\u003c/a\u003e!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepsilla-cloud%2Fepsilla-javascript-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepsilla-cloud%2Fepsilla-javascript-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepsilla-cloud%2Fepsilla-javascript-client/lists"}