From 81fdec1c32d72cf9c544fcc929ababc934778461 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 14 Nov 2025 15:58:31 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20d'une=20typo,=20correction=20dans?= =?UTF-8?q?=20le=20main=20d'un=20probl=C3=A8me=20d'attribut=20lorsque=20ev?= =?UTF-8?q?aluate=20n'etait=20pas=20appel=C3=A9=20et=20ajout=20d'un=20indi?= =?UTF-8?q?cateur=20pour=20la=20fonction=20add=20de=20la=20pipeline=20mont?= =?UTF-8?q?rant=20quels=20documents=20sont=20ajout=C3=A9s=20=C3=A0=20la=20?= =?UTF-8?q?BDD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- create_parser.py | 2 +- main.py | 2 +- src/RAG_pipeline.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/create_parser.py b/create_parser.py index 0e2cd5c..2370850 100644 --- a/create_parser.py +++ b/create_parser.py @@ -39,7 +39,7 @@ def create_parser(): subparsers.add_parser( "add", - help="Add the documents to the databaser", + help="Add the documents to the database", parents=[path_arg_parent] ) diff --git a/main.py b/main.py index da37c64..428ab4a 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,7 @@ def main(): source_path = getattr(args, "path", DEFAULT_SOURCE_PATH) or DEFAULT_SOURCE_PATH documents_path = get_files_in_directory(source_path=source_path) - eval_path = args.eval_file if args.eval_file else DEFAULT_EVAL_PATH + eval_path = getattr(args, "eval_file", DEFAULT_EVAL_PATH) or DEFAULT_EVAL_PATH sample_questions = json.load(open(eval_path, "r")) commands = { diff --git a/src/RAG_pipeline.py b/src/RAG_pipeline.py index d9a16e6..c111899 100644 --- a/src/RAG_pipeline.py +++ b/src/RAG_pipeline.py @@ -23,7 +23,7 @@ class RAGpipeline: def add_documents(self, documents_path : List[str]) -> None: items = self.indexer.index(documents_path) - #print(f"🔍 Adding documents: {', '.join(docu)}") + print(f"🔍 Adding documents: {documents_path}") self.datastore.add_items(items= items) return