From b0e12dd21931b709a272b792cbfc733a30e54dfd Mon Sep 17 00:00:00 2001 From: sunxiaoye Date: Fri, 6 Sep 2024 15:14:42 +0800 Subject: [PATCH] Add create_ui=False for RAG demo --- ecosystem/README.md | 2 +- ecosystem/README_zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ecosystem/README.md b/ecosystem/README.md index 9cddd33..ef918f8 100644 --- a/ecosystem/README.md +++ b/ecosystem/README.md @@ -285,7 +285,7 @@ prompt = 'You will play the role of an AI Q&A assistant and complete a dialogue ```python -documents = Document(dataset_path='/file/to/yourpath', embed=lazyllm.TrainableModule('bge-large-zh-v1.5')) +documents = Document(dataset_path='/file/to/yourpath', embed=lazyllm.TrainableModule('bge-large-zh-v1.5'), create_ui=False) documents.create_node_group(name="sentences", transform=SentenceSplitter, chunk_size=1024, chunk_overlap=100) with pipeline() as ppl: with parallel().sum as ppl.prl: diff --git a/ecosystem/README_zh-CN.md b/ecosystem/README_zh-CN.md index bb7a2b4..0e5407f 100644 --- a/ecosystem/README_zh-CN.md +++ b/ecosystem/README_zh-CN.md @@ -282,7 +282,7 @@ prompt = '你将扮演一个人工智能问答助手的角色,完成一项对 ```python -documents = Document(dataset_path='/file/to/yourpath', embed=lazyllm.TrainableModule('bge-large-zh-v1.5')) +documents = Document(dataset_path='/file/to/yourpath', embed=lazyllm.TrainableModule('bge-large-zh-v1.5'), create_ui=False) documents.create_node_group(name="sentences", transform=SentenceSplitter, chunk_size=1024, chunk_overlap=100) with pipeline() as ppl: with parallel().sum as ppl.prl: