(texts, options = {})
| 116 | } |
| 117 | |
| 118 | async embedTexts(texts, options = {}) { |
| 119 | const response = await this.createEmbedding({ |
| 120 | model: options.model || this.model, |
| 121 | input: texts |
| 122 | }, options); |
| 123 | return response.embeddings || []; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | export function createEmbeddingSource(options = {}) { |
no test coverage detected