feat: init v3

This commit is contained in:
ikechan8370 2025-03-05 23:56:41 +08:00
parent d6cb085c40
commit 531986b2dc
284 changed files with 618 additions and 405179 deletions

View file

@ -0,0 +1,36 @@
// todo
class FaissVectorDatabase {
constructor (index) {
this.index = index
}
async addVector (vector, text) {
}
async addVectors (vectors, texts) {
}
async search (queryVector, k) {
}
async getVector (id) {
}
async deleteVector (id) {
}
async updateVector (id, newVector, newText) {
}
async count () {
}
async clear () {
}
}
/**
* 默认向量库
* @type {import('chaite').VectorDatabase}
*/
export const ChatGPTVectorDatabase = new FaissVectorDatabase()