13 lines
320 B
Python
13 lines
320 B
Python
class BaseVectorDB:
|
|
"""Base class for vector database."""
|
|
|
|
def __init__(self):
|
|
self.client = self._get_or_create_db()
|
|
|
|
def _get_or_create_db(self):
|
|
"""Get or create the database."""
|
|
raise NotImplementedError
|
|
|
|
def _get_or_create_collection(self):
|
|
raise NotImplementedError
|