Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Caleb: switched back to markdown for extraction

Caleb Pefferd1235a0029b6
diff --git a/apps/api/src/lib/LLM-extraction/models.ts b/apps/api/src/lib/LLM-extraction/models.ts
index 177fe6449..df1b6d1a7 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({