weaviate-ruby 0.8.2 → 0.8.4

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: 4bcf8baba483726456d4c887dc2e7195a5b879992ed417d7d250c4d57c9937d4
4
- data.tar.gz: 6d5934c6ac503b6883fbc06efc505f2df9cc69a6441d10ab4793a86ec7bd61c1
3
+ metadata.gz: 498b6ca989e0572928f453d88084e765e79112d9cb7c96dad92da06752aaeb7e
4
+ data.tar.gz: e708949fa1faf0c250173a6e86b31b23eea7d5231a2cb9b3fd8f6c89aef97552
5
5
  SHA512:
6
- metadata.gz: 21f5725a8751126d0468c3e48cdefc30ac37650193f7140e052bee082d1cdc572083896e0df0d5b3c0943958c56afb1d3cb0bcaf87cc1567fa7e2510674460cd
7
- data.tar.gz: 52fffd1f50a8f981f650b12487179ea47c4791f08d469389a03b15648017d52214db21eb9b61c3d82609c6b32b2b6f5e5d0ffd39d3c44710c64f13d7707ae828
6
+ metadata.gz: 054647b0b92945fe8e4cfaaf8b783f40220c6f557c39654b664421f4019f4b8721c6bdbd8b75590ea7fc6941e9677cd2a407bf2b910770f69325826f0620e8b1
7
+ data.tar.gz: 6333ab94a2f13066c37fd80c32ce3f33b9b8446449bf2463e51e55e3bbde55aa51eb2c0b6ef33b3b3136adb39ea5500c7ed8cf5bb4b3073796d81c6836fba579
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.8.3] - 2023-06-25
4
+ - Add Google PaLM support
5
+
6
+ ## [0.8.2] - 2023-05-18
7
+
8
+ ## [0.8.1] - 2023-05-10
9
+
3
10
  ## [0.8.0] - 2023-04-18
4
11
 
5
12
  ### Breaking
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weaviate-ruby (0.8.2)
4
+ weaviate-ruby (0.8.4)
5
5
  faraday (~> 1)
6
6
  faraday_middleware (~> 1)
7
7
  graphlient (~> 0.6.0)
@@ -50,6 +50,7 @@ GEM
50
50
  pry (>= 0.13, < 0.15)
51
51
  rainbow (3.1.1)
52
52
  rake (13.0.6)
53
+ rdiscount (2.2.7.1)
53
54
  regexp_parser (2.7.0)
54
55
  rexml (3.2.5)
55
56
  rspec (3.11.0)
@@ -89,6 +90,7 @@ GEM
89
90
  tzinfo (2.0.6)
90
91
  concurrent-ruby (~> 1.0)
91
92
  unicode-display_width (2.4.2)
93
+ yard (0.9.34)
92
94
 
93
95
  PLATFORMS
94
96
  x86_64-darwin-19
@@ -97,9 +99,11 @@ PLATFORMS
97
99
  DEPENDENCIES
98
100
  pry-byebug (~> 3.9)
99
101
  rake (~> 13.0)
102
+ rdiscount
100
103
  rspec (~> 3.0)
101
104
  standard (~> 1.25.0)
102
105
  weaviate-ruby!
106
+ yard
103
107
 
104
108
  BUNDLED WITH
105
109
  2.4.0
data/README.md CHANGED
@@ -6,9 +6,15 @@
6
6
  <img alt='Ruby logo' src='https://user-images.githubusercontent.com/541665/230231593-43861278-4550-421d-a543-fd3553aac4f6.png' height='40' />
7
7
  </p>
8
8
 
9
- Ruby wrapper for the Weaviate.io API
9
+ Ruby wrapper for the Weaviate.io API.
10
10
 
11
- ![Tests status](https://github.com/andreibondarev/weaviate-ruby/actions/workflows/ci.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/weaviate-ruby.svg)](https://badge.fury.io/rb/weaviate-ruby)
11
+ Part of the [Langchain.rb](https://github.com/andreibondarev/langchainrb) stack.
12
+
13
+ ![Tests status](https://github.com/andreibondarev/weaviate-ruby/actions/workflows/ci.yml/badge.svg)
14
+ [![Gem Version](https://badge.fury.io/rb/weaviate-ruby.svg)](https://badge.fury.io/rb/weaviate-ruby)
15
+ [![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/weaviate-ruby)
16
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/andreibondarev/weaviate-ruby/blob/main/LICENSE.txt)
17
+ [![](https://dcbadge.vercel.app/api/server/WDARp7J2n8?compact=true&style=flat)](https://discord.gg/WDARp7J2n8)
12
18
 
13
19
  ## Installation
14
20
 
@@ -30,8 +36,8 @@ require 'weaviate'
30
36
  client = Weaviate::Client.new(
31
37
  url: 'https://some-endpoint.weaviate.network', # Replace with your endpoint
32
38
  api_key: '', # Weaviate API key
33
- model_service: :openai, # Service that will be used to generate vectors. Possible values: :openai, :azure_openai, :cohere, :huggingface
34
- model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure OpenAI, Cohere or Hugging Face API key
39
+ model_service: :openai, # Service that will be used to generate vectors. Possible values: :openai, :azure_openai, :cohere, :huggingface, :google_palm
40
+ model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure OpenAI, Cohere, Hugging Face or Google PaLM api key
35
41
  )
36
42
  ```
37
43
 
data/Rakefile CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  require "bundler/gem_tasks"
4
4
  require "rspec/core/rake_task"
5
+ require "yard"
5
6
 
6
7
  RSpec::Core::RakeTask.new(:spec)
7
8
 
8
9
  task default: :spec
10
+
11
+ YARD::Rake::YardocTask.new do |t|
12
+ t.options = ["--fail-on-warning"]
13
+ end
@@ -14,7 +14,8 @@ module Weaviate
14
14
  openai: "X-OpenAI-Api-Key",
15
15
  azure_openai: "X-Azure-Api-Key",
16
16
  cohere: "X-Cohere-Api-Key",
17
- huggingface: "X-HuggingFace-Api-Key"
17
+ huggingface: "X-HuggingFace-Api-Key",
18
+ google_palm: "X-Palm-Api-Key"
18
19
  }
19
20
 
20
21
  def initialize(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weaviate
4
- VERSION = "0.8.2"
4
+ VERSION = "0.8.4"
5
5
  end
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.2
4
+ version: 0.8.4
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-05-19 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rdiscount
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  description: Ruby wrapper for the Weaviate.io API
70
98
  email:
71
99
  - andrei@sourcelabs.io