(data: IEmbedding)
| 28 | ); |
| 29 | ` |
| 30 | add(data: IEmbedding): Promise<IEmbedding> { |
| 31 | this.dataSpace.exec( |
| 32 | `INSERT INTO ${this.name} (id, embedding, model, raw_content, source_type, source) VALUES (?, ?, ?, ?, ?, ?)`, |
| 33 | [ |
| 34 | data.id, |
| 35 | data.embedding, |
| 36 | data.model, |
| 37 | data.raw_content, |
| 38 | data.source_type, |
| 39 | data.source, |
| 40 | ] |
| 41 | ) |
| 42 | return Promise.resolve(data) |
| 43 | } |
| 44 | get(id: string): Promise<IEmbedding | null> { |
| 45 | throw new Error("Method not implemented.") |
| 46 | } |