mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-06-12 05:04:00 +03: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");
|
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
|
* Delete a document from a namespace
|
||||||
* Default implementation that works for most providers.
|
* 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
|
* Curate sources from search results
|
||||||
* @param {any[]} sources - The sources to curate
|
* @param {any[]} sources - The sources to curate
|
||||||
|
|||||||
Reference in New Issue
Block a user