From d1235a0029b685f8e7a0f6a3e9218516b00fca97 Mon Sep 17 00:00:00 2001 From: Caleb Peffer <44934913+calebpeffer@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:23:12 -0700 Subject: [PATCH] Caleb: switched back to markdown for extraction --- apps/api/src/lib/LLM-extraction/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/lib/LLM-extraction/models.ts b/apps/api/src/lib/LLM-extraction/models.ts index 177fe64..df1b6d1 100644 --- a/apps/api/src/lib/LLM-extraction/models.ts +++ b/apps/api/src/lib/LLM-extraction/models.ts @@ -29,7 +29,7 @@ function prepareOpenAIDoc( throw new Error("Markdown content is missing in the document."); } - return [{ type: 'text', text: document.html}] + return [{ type: 'text', text: document.markdown}] } export async function generateOpenAICompletions({