MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / embedTexts

Method embedTexts

embeddings/embeddingService.js:118–124  ·  view source on GitHub ↗
(texts, options = {})

Source from the content-addressed store, hash-verified

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
127export function createEmbeddingSource(options = {}) {

Callers 1

Calls 1

createEmbeddingMethod · 0.95

Tested by

no test coverage detected