Sha256: c91c487ec65228c68aff7dc74fc973e9d34f58a6d6fd5995da8688f85ed99935
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true module Roseflow module VectorStores class Base def has_embeddings?(klass) false end def list_vectors(namespace = nil) raise NotImplementedError, "You must implement the #list_vectors method in your vector store" end def build_vector(id, attrs) raise NotImplementedError, "You must implement the #build_vector method in your vector store" end def create_vector(vector) raise NotImplementedError, "You must implement the #create_vector method in your vector store" end def delete_vector(name) raise NotImplementedError, "You must implement the #delete_vector method in your vector store" end def update_vector(vector) raise NotImplementedError, "You must implement the #update_vector method in your vector store" end def query(query) raise NotImplementedError, "You must implement the #query method in your vector store" end def find(query) raise NotImplementedError, "You must implement the #find method in your vector store" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roseflow-0.1.0 | lib/roseflow/vector_stores/base.rb |