We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f8d15 commit 16dfeb2Copy full SHA for 16dfeb2
lib/langchain/llm/base.rb
@@ -24,6 +24,15 @@ class Base
24
# A client for communicating with the LLM
25
attr_reader :client
26
27
+ # Ensuring backward compatibility after https://github.com/patterns-ai-core/langchainrb/pull/586
28
+ # TODO: Delete this method later
29
+ def default_dimension
30
+ default_dimensions
31
+ end
32
+
33
+ # Returns the number of vector dimensions used by DEFAULTS[:chat_completion_model_name]
34
+ #
35
+ # @return [Integer] Vector dimensions
36
def default_dimensions
37
self.class.const_get(:DEFAULTS).dig(:dimensions)
38
end
0 commit comments