langchainrb 0.3.1 → 0.3.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: a179004be8e547124fe81922b2cf7190d34f94f7775c28df7986d17644dffa31
4
- data.tar.gz: 0eaf80695379a5038175d561dfa348d4146073b008aeb662b3b523e8bd04d54d
3
+ metadata.gz: e751a38f6a248db9aabfac3f1b9bc547f61304dd366be999005941045a5adcd6
4
+ data.tar.gz: 56db69c0a578bdf198bfc12cb53e92f0e1d15654a1dfa29715d5d7833550da33
5
5
  SHA512:
6
- metadata.gz: 152fd7a35c9df7e9541b50059a27f5e76d67263ceb4e25dab07224bd80bffe70936ab712ab3345a401b4be5016a4165c8a7a6cf1b4b1673c36275d926d7ce17d
7
- data.tar.gz: 848984972f6ab3f1dd4078d303872be1e70ae78a1ceedf2f0b7663f2144d12831c690e1ad48cbd579e779fbe6da8ad6339ee42130716bf4bb137917f5edf3e30
6
+ metadata.gz: bdd3060863a967b48a6123ea379d9a98632730a726b8da9924bb0061511b8bf88fa05f36c49ac4b8f136472e9aa204c4bd09929d31e0f2c0700ad16361a1a8cf
7
+ data.tar.gz: 88f04804d10f51d639b8643bd683b8a420920fc4ad2d26ef6c45f4fac034ec3f8b54787de51c4799f4a074029ad5649efca6e950b29fef62b96ce9452e5ec8cc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.2] - 2023-05-15
4
+ - Agents
5
+ - Fix Chain of Thought prompt loader
6
+
3
7
  ## [0.3.1] - 2023-05-12
4
8
  - Tools
5
9
  - Introducing `Tool::Wikipedia`, a tool that looks up Wikipedia entries
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- langchainrb (0.3.1)
4
+ langchainrb (0.3.2)
5
5
  cohere-ruby (~> 0.9.3)
6
6
  eqn (~> 1.6.5)
7
7
  google_search_results (~> 2.0.0)
@@ -101,7 +101,7 @@ module Agent
101
101
  # @return [PromptTemplate] PromptTemplate instance
102
102
  def prompt_template
103
103
  @template ||= Prompt.load_from_path(
104
- file_path: "lib/agent/chain_of_thought_agent/chain_of_thought_agent_prompt.json"
104
+ file_path: Pathname.new(__dir__).join("chain_of_thought_agent_prompt.json")
105
105
  )
106
106
  end
107
107
  end
data/lib/llm/cohere.rb CHANGED
@@ -34,7 +34,7 @@ module LLM
34
34
  default_params = {
35
35
  prompt: prompt,
36
36
  temperature: DEFAULTS[:temperature],
37
- model: "xlarge" #DEFAULTS[:completion_model_name]
37
+ model: DEFAULTS[:completion_model_name]
38
38
  }
39
39
 
40
40
  if params[:stop_sequences]
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Langchain
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: langchainrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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-13 00:00:00.000000000 Z
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug