mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
final checks on all providers/reorder base class for consistency
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user