Sha256: 6183dd878fff89b5e4d78f7a4b3fa07a231a9a642e11425c88ba221dcbffa838

Contents?: true

Size: 542 Bytes

Versions: 3

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'bedrock_runtime/payload_builders/cohere/embed_base'

RSpec.describe RubyAmazonBedrock::PayloadBuilders::Cohere::EmbedBase do
  let(:prompt) { 'example_prompt' }
  let(:options) { {} }
  let(:body) do
    {
      texts: [prompt],
      input_type: 'search_document',
      truncate: 'NONE'
    }.to_json
  end

  describe '#build' do
    it_behaves_like 'a payload builder'

    context 'with custom parameters' do
      it_should_behave_like 'a payload builder'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-amazon-bedrock-0.2.4 spec/bedrock_runtime/payload_builders/cohere/embed_base_spec.rb
ruby-amazon-bedrock-0.2.3 spec/bedrock_runtime/payload_builders/cohere/embed_base_spec.rb
ruby-amazon-bedrock-0.2.2 spec/bedrock_runtime/payload_builders/cohere/embed_base_spec.rb