From 65f824a8cfb4eb7e8a90b9cc03cf19a589a8d573 Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Wed, 23 Oct 2024 16:47:15 -0300 Subject: [PATCH] new(all); ROUTER. --- packages/llm.gblib/services/ChatServices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/llm.gblib/services/ChatServices.ts b/packages/llm.gblib/services/ChatServices.ts index 93cc1ab5..b8c946fc 100644 --- a/packages/llm.gblib/services/ChatServices.ts +++ b/packages/llm.gblib/services/ChatServices.ts @@ -213,8 +213,8 @@ export class ChatServices { output = `${output}\n\n\n\nUse also the following context which is coming from Source Document: ${filename} at page: ${page ? page : 'entire document' } (you will fill the JSON sources collection field later), - Ignore this block if it is an index or part of table of contents. - And memorize this block among document + Use other page if this block is an index or table of contents (TOC). + And memorize this block (if it is not an Index or TOC) among document information and return when you are refering this part of content:\n\n\n\n ${doc.pageContent } \n\n\n\n.`;