From 7deca069ceeb76d702f2408f308b66c271e3c1cc Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 17 Jun 2023 10:31:53 +0900 Subject: [PATCH] Fix typo in getEmbeddingsForText.ts (#515) charcter -> character --- apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.ts b/apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.ts index da308316..c9a1ed72 100644 --- a/apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.ts +++ b/apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.ts @@ -6,7 +6,7 @@ import { embedding } from "./openai"; const MAX_CHAR_LENGTH = 250 * 4; // This function takes a text and returns an array of embeddings for each chunk of the text -// The text is split into chunks of a given maximum charcter length +// The text is split into chunks of a given maximum character length // The embeddings are computed in batches of a given size export async function getEmbeddingsForText({ text,