Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AI>} 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: {
Expand Down