Class: Anthemic::Providers::Base
- Inherits:
-
Object
- Object
- Anthemic::Providers::Base
- Defined in:
- lib/anthemic/providers/base.rb
Instance Method Summary collapse
-
#embed(text) ⇒ Array<Float>
Create embeddings for a text.
-
#generate(prompt, options = {}) ⇒ String
Generate a response from the language model.
Instance Method Details
#embed(text) ⇒ Array<Float>
Create embeddings for a text
19 20 21 |
# File 'lib/anthemic/providers/base.rb', line 19 def (text) raise NotImplementedError, "Subclasses must implement #embed" end |
#generate(prompt, options = {}) ⇒ String
Generate a response from the language model
11 12 13 |
# File 'lib/anthemic/providers/base.rb', line 11 def generate(prompt, = {}) raise NotImplementedError, "Subclasses must implement #generate" end |