Sha256: 5b97a5ddf7fbf72afbd4b4da8a6b59995d30c4be69b4112dc26d67d4e065e188

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require_relative "../spec_helper"

RSpec.describe Actions::InitializeVectorStore do
  let(:ctx) do
    Roseflow::InteractionContext.make(
      provider: :pinecone
    )
  end

  describe "initializing the vector store" do
    let(:action) { described_class.execute(ctx) }

    it "returns a vector store" do
      expect(action).to be_a_success
      expect(action.vector_store).to be_a Roseflow::Pinecone::VectorStore
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roseflow-0.1.0 examples/github-repo-chat/spec/actions/initialize_vector_store_spec.rb