Class: Roseflow::Pinecone::VectorQueryResponse
- Inherits:
-
VectorResponse
- Object
- BaseResponse
- VectorResponse
- Roseflow::Pinecone::VectorQueryResponse
- Defined in:
- lib/roseflow/pinecone/response.rb
Instance Attribute Summary
Attributes inherited from VectorResponse
Attributes inherited from BaseResponse
Instance Method Summary collapse
Methods inherited from VectorResponse
#failure?, #message, #success?
Methods inherited from BaseResponse
Constructor Details
This class inherits a constructor from Roseflow::Pinecone::BaseResponse
Instance Method Details
#vectors ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/roseflow/pinecone/response.rb', line 89 def vectors case @method_ when :fetch @vectors.map do |vector| Vector::VectorObject.new(vector.last) end when :query @vectors.map do |vector| Vector::VectorObject.new(vector) end end end |