Add create_ui=False for RAG demo

pull/795/head
sunxiaoye 2024-09-06 15:14:42 +08:00
parent 3163ccf65f
commit b0e12dd219
2 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ prompt = 'You will play the role of an AI Q&A assistant and complete a dialogue
</details>
```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:

View File

@ -282,7 +282,7 @@ prompt = '你将扮演一个人工智能问答助手的角色,完成一项对
</details>
```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: