BaseVectorDb.ts 339 B

1234567891011121314
  1. class BaseVectorDB {
  2. initDb: Promise<void>;
  3. constructor() {
  4. this.initDb = this.getClientAndCollection();
  5. }
  6. // eslint-disable-next-line class-methods-use-this
  7. protected async getClientAndCollection(): Promise<void> {
  8. throw new Error('getClientAndCollection() method is not implemented');
  9. }
  10. }
  11. export { BaseVectorDB };