epsilla-ruby 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02ec2167e8966de5929e21521bcd3640683d4ac7a4c27b42c811a85714d4d7bc
4
- data.tar.gz: 1c665e9af8e44e1a5f16b965c0996075ad4aa5833f6c92207c3492488293dc70
3
+ metadata.gz: 25bffa748aef3218e358bd1654671fa90e847f19aeedb9a7867860f92b65e058
4
+ data.tar.gz: 9c7aac7a583e92850edae060676fc188fa60b455c70743fc9a6a83e1f85aa491
5
5
  SHA512:
6
- metadata.gz: 72ad5416ad62fc593691288456294781a16aeb6aac85e12ef5257e133b2abd6df834963a3c2f40656d45235d7a5ea61b912716ba8b7250ad778192e403e09339
7
- data.tar.gz: a805cb4f2ad872fbfeae05c7756bbb15f40d052cebc1c0fe68f4305e90078f0165095a104fec82de5759b5e43537bdf7544e65dd7f6ec899a4cc7ae8db4a05a5
6
+ metadata.gz: 68161fdd3e73a044edc538751c4660c74a5419b19dc1bc3346d0bd42201e5af9cb316ff0602786dbd4097d2ac19a6d28930d05f168bff8166b8ebacb70d42132
7
+ data.tar.gz: 0e5aa3311a2c3312d411c8ea97cb7e1a03cc2e012eda5aa1acbb08ab9992afe443acb600b7ac64d4efcd1e4625c026ba444d96e205deb0a34302a1dba676627b
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Epsilla Ruby SDK
2
2
 
3
3
  Welcome to Ruby SDK for Epsilla Vector Database!
4
+ https://rubygems.org/gems/epsilla-ruby
5
+
4
6
 
5
7
  ## Installation
6
8
  ```shell
@@ -68,12 +70,12 @@ puts status_code, response
68
70
 
69
71
 
70
72
  # Drop table
71
- status_code, response = client.database.drop_table("MyTable")
72
- puts status_code, response
73
+ #status_code, response = client.database.drop_table("MyTable")
74
+ #puts status_code, response
73
75
 
74
76
  # Unload db
75
- status_code, response = client.database.unload_db("MyDB")
76
- puts status_code, response
77
+ #status_code, response = client.database.unload_db("MyDB")
78
+ #puts status_code, response
77
79
 
78
80
  ```
79
81
 
@@ -8,6 +8,7 @@
8
8
 
9
9
  require "epsilla"
10
10
 
11
+
11
12
  # Connect to Epsilla VectorDB
12
13
  client = Epsilla::Client.new(protocol="http", host="127.0.0.1", port="8888")
13
14
  # puts client.live?
@@ -45,11 +46,11 @@ puts status_code, response
45
46
  status_code, response = client.database.rebuild()
46
47
  puts status_code, response
47
48
 
48
- # Query Vectors
49
+ # Query vectors
49
50
  query_field = "Embedding"
50
- response_fields = ["Doc"]
51
51
  query_vector=[0.35, 0.55, 0.47, 0.94]
52
- limit=1
52
+ response_fields = ["Doc"]
53
+ limit=2
53
54
  status_code, response = client.database.query(table_name="MyTable", query_field=query_field, query_vector=query_vector, response_fields=response_fields, limit=limit, with_distance=true)
54
55
  puts status_code, response
55
56
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Epsilla
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epsilla-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Epsilla Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,7 +28,6 @@ description: EpsillaDB is a scalable, high-performance, and cost-effective vecto
28
28
  database
29
29
  email:
30
30
  - eric@epsilla.com
31
- - admin@epsilla.com
32
31
  executables: []
33
32
  extensions: []
34
33
  extra_rdoc_files: []
@@ -50,8 +49,8 @@ licenses:
50
49
  - MIT
51
50
  metadata:
52
51
  homepage_uri: https://github.com/epsilla-cloud/vectordb
53
- source_code_uri: https://github.com/epsilla-cloud/epsilla-ruby
54
- changelog_uri: https://github.com/epsilla-cloud/epsilla-ruby/blob/main/CHANGELOG.md
52
+ source_code_uri: https://github.com/epsilla-cloud/epsilla-ruby-client
53
+ changelog_uri: https://github.com/epsilla-cloud/epsilla-ruby-client/blob/main/CHANGELOG.md
55
54
  post_install_message:
56
55
  rdoc_options: []
57
56
  require_paths: