speaky 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d65d925dd1dc599e493c9ebb83f4e7eff915aa5ffffbc2daf4248bb83d1801fd
4
- data.tar.gz: 6714917b885cc8c34992b75ff3688a60076568a341d6ccee577f8b5959946da8
3
+ metadata.gz: d4c6b9331e1d4d69bf0e8e66f22fc9e43620874d22400552a418af290d286969
4
+ data.tar.gz: 1878fe018b91f0caede735903334a2e86a9a1ecbfd3814ebccfe6857f58ff606
5
5
  SHA512:
6
- metadata.gz: 6a9c1ca13995cf513c4600725fb9a5f3ed6a2749a9d020ecd204dacf07e528356dd9164cb64d9ff70b744fae5938efe274825186ea374cec9599aa51bed07187
7
- data.tar.gz: 3ffc25af7d5884ab66720ef78fc03b6afe10892b0a3296be83a53e150654ebf09410bdae9eb33e164cc2ec485add2771aa84f72623c605892f4761c32ec8a0cc
6
+ metadata.gz: 3dbb0b0cd00be46b2ab61ff749474623c182c067ffdc3e51b6b20c5f1d87587f78d1290577cc61e6276db5574b81cb8116afe5db9f7a2e9aa0e4e078c220ae0e
7
+ data.tar.gz: 628ae505b3b8b6dbce97d08dcf953c568116d21725a2d4f3c82ee04c49815ac0c8dc10621af9e17f97aed9c34ee26426b41a3c7d2e31e319a5a04c8253c97880
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "openai"
4
-
5
3
  module Speaky
6
4
  class LlmOpenai < LlmBase
7
5
  def initialize(config)
6
+ require "openai"
7
+
8
8
  @config = config
9
9
 
10
10
  # check if the access token is set
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'faiss'
4
-
5
3
  module Speaky
6
4
  class VectorstoreFaiss < VectorstoreBase
7
5
  def initialize(config)
6
+ require 'faiss'
7
+
8
8
  @config = config
9
9
 
10
10
  # check if the index path is set
@@ -35,11 +35,17 @@ module Speaky
35
35
  end
36
36
 
37
37
  def query(question)
38
- # TODO: implement query
38
+ # TODO
39
39
 
40
40
  []
41
41
  end
42
42
 
43
+ def reset
44
+ # TODO
45
+
46
+ true
47
+ end
48
+
43
49
  private
44
50
 
45
51
  # This method is used to convert a string ID to a unique integer ID
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rails'
4
- require 'qdrant'
5
4
 
6
5
  module Speaky
7
6
  class VectorstoreQdrant < VectorstoreBase
8
7
  def initialize(config)
8
+ require 'qdrant'
9
+
9
10
  @config = config
10
11
 
11
12
  # check if required fields are set
@@ -1,3 +1,3 @@
1
1
  module Speaky
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speaky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-25 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Store activerecord models in vector stores and query them with LLMs!
14
14
  email: