Spaces:
Runtime error
Runtime error
# BaseDB.py | |
from abc import ABC, abstractmethod | |
class BaseDB(ABC): | |
def init_db(self): | |
pass | |
def save(self, file_path): | |
pass | |
def load(self, file_path): | |
pass | |
def search(self, vector, n_results): | |
pass | |
def init_from_docs(self, vectors, documents): | |
pass | |