weaviate-ruby 0.8.1 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/weaviate/client.rb +3 -1
- data/lib/weaviate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e63b3f0149e87dc2aec7c38970e91866e45dfccfc9e46c1378c27b9135f4a4d
|
4
|
+
data.tar.gz: f22c4a1c4eb8cdd2acd9d70b95404c46afb11c19e3821be35fb5b49048563dcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 843a49164ce05ed851dcf80e228e75839f05d7ee73c65087da21f72ab689f2c5388ac14ba06a1782c3aeda62ff1b01104bf52eb230313df145b9afafcb856c25
|
7
|
+
data.tar.gz: b1fd3ee9aa230da2499cc9ce1e8c24f69bb29a3199b07e16cf0f1095f53da9094a83ae849c9d266ff27a8292cb6d7b4166c7e257cb02a698b7d53702bbdb1f20
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -30,8 +30,8 @@ require 'weaviate'
|
|
30
30
|
client = Weaviate::Client.new(
|
31
31
|
url: 'https://some-endpoint.weaviate.network', # Replace with your endpoint
|
32
32
|
api_key: '', # Weaviate API key
|
33
|
-
model_service: :openai, # Service that will be used to generate vectors. Possible values: :openai, :cohere, :huggingface
|
34
|
-
model_service_api_key: 'xxxxxxx' # Either OpenAI, Cohere
|
33
|
+
model_service: :openai, # Service that will be used to generate vectors. Possible values: :openai, :azure_openai, :cohere, :huggingface, :google_palm
|
34
|
+
model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure OpenAI, Cohere, Hugging Face or Google PaLM api key
|
35
35
|
)
|
36
36
|
```
|
37
37
|
|
data/lib/weaviate/client.rb
CHANGED
@@ -12,8 +12,10 @@ module Weaviate
|
|
12
12
|
|
13
13
|
API_KEY_HEADERS = {
|
14
14
|
openai: "X-OpenAI-Api-Key",
|
15
|
+
azure_openai: "X-Azure-Api-Key",
|
15
16
|
cohere: "X-Cohere-Api-Key",
|
16
|
-
huggingface: "X-HuggingFace-Api-Key"
|
17
|
+
huggingface: "X-HuggingFace-Api-Key",
|
18
|
+
google_palm: "X-Palm-Api-Key"
|
17
19
|
}
|
18
20
|
|
19
21
|
def initialize(
|
data/lib/weaviate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weaviate-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|