You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: build_from_array.rb
    path of file: ./repos/boxcars/lib/boxcars/vector_store/in_memory
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Boxcars
  module VectorStore
    module InMemory
      class BuildFromArray
        include VectorStore

        # @param embedding_tool [Symbol] :openai or other embedding tools
        # @param input_array [Array] array of hashes with :content and :metadata keys
   
    
        def add_vectors(vectors, input_array)
          vectors.zip(input_array).each do |vector, doc|
            memory_vector = Document.new(
              content: doc[:content],
              embedding: vector[:embedding],
              metadata: doc[:metadata].merge(dim: vector[:dim])
            )
            @memory_vectors << memory_vector
          end
        end
      end
    end