Examples and guides for using the OpenAI API
Fix typo in getEmbeddingsForText.ts (#515)
Ikko Eltociear Ashimine0d1436b8d9b8
diff --git a/apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.ts b/apps/file-q-and-a/nextjs/src/services/getEmbeddingsForText.tsindex 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 sizeexport async function getEmbeddingsForText({text,