From ad284064939326f6fa34db67852f6ca3e43c3e73 Mon Sep 17 00:00:00 2001 From: Kostas Minaidis Date: Wed, 30 Jul 2025 14:51:09 +0300 Subject: [PATCH] Move JSDoc under the appropriate static method --- src/ai.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ai.ts b/src/ai.ts index 8a5f878..7a05a43 100644 --- a/src/ai.ts +++ b/src/ai.ts @@ -33,17 +33,17 @@ export class AI { this.#chain = chain; } + static getEmbeddings(text: string) { + const embeddings = new HerokuMiaEmbeddings(); + return embeddings.embedQuery(text); + } + /** * Builds an AI instance with the specified filter parameters. * * @param {FilterParams} [filter] - The filter parameters to use when building the AI instance. * @returns {Promise} A promise that resolves to the built AI instance. */ - static getEmbeddings(text: string) { - const embeddings = new HerokuMiaEmbeddings(); - return embeddings.embedQuery(text); - } - static async build(filter?: FilterParams) { const pgOptions = { postgresConnectionOptions: {