From 3d860df873a164076359b88a86f0deb00781a8e1 Mon Sep 17 00:00:00 2001 From: Emanuel Ferreira <contatoferreirads@gmail.com> Date: Sat, 27 Jan 2024 10:11:50 -0300 Subject: [PATCH] chore: update example (#463) --- .../modules/documents_and_nodes/metadata_extraction.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/docs/docs/modules/documents_and_nodes/metadata_extraction.md b/apps/docs/docs/modules/documents_and_nodes/metadata_extraction.md index 3782c2f6e..754b5ae3e 100644 --- a/apps/docs/docs/modules/documents_and_nodes/metadata_extraction.md +++ b/apps/docs/docs/modules/documents_and_nodes/metadata_extraction.md @@ -21,12 +21,12 @@ import { } from "llamaindex"; async function main() { - const openAILLM = new OpenAI({ model: "gpt-3.5-turbo" }); - const pipeline = new IngestionPipeline({ transformations: [ - new TitleExtractor(openAILLM), - new QuestionsAnsweredExtractor(openAILLM), + new TitleExtractor(), + new QuestionsAnsweredExtractor({ + questions: 5, + }), ], }); -- GitLab