[feat] Refactor VectorDB class hierarchy for flexibility
This commit is contained in:
10
embedchain/vectordb/base_vector_db.py
Normal file
10
embedchain/vectordb/base_vector_db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
class BaseVectorDB:
|
||||
def __init__(self):
|
||||
self.client = self._get_or_create_db()
|
||||
self.collection = self._get_or_create_collection()
|
||||
|
||||
def _get_or_create_db(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def _get_or_create_collection(self):
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user