final checks on all providers/reorder base class for consistency

This commit is contained in:
shatfield4
2025-12-04 16:29:37 -08:00
parent d65c7776bc
commit b3c4a9448f

View File

@@ -122,6 +122,14 @@ class VectorDatabase {
throw new Error("Must be implemented by provider");
}
/**
* Reset the vector database (delete all data)
* @returns {Promise<{reset: boolean}>}
*/
async reset() {
throw new Error("Must be implemented by provider");
}
/**
* Delete a document from a namespace
* Default implementation that works for most providers.
@@ -265,14 +273,6 @@ class VectorDatabase {
};
}
/**
* Reset the vector database (delete all data)
* @returns {Promise<{reset: boolean}>}
*/
async reset() {
throw new Error("Must be implemented by provider");
}
/**
* Curate sources from search results
* @param {any[]} sources - The sources to curate