Update displayed_name to display_name (#4311)

### What problem does this PR solve?

Update displayed_name to display_name

### Type of change

- [x] Refactoring

Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
This commit is contained in:
liuhua
2024-12-31 17:25:24 +08:00
committed by GitHub
parent e5b1511c66
commit 419b546f03
6 changed files with 53 additions and 53 deletions

View File

@ -894,7 +894,7 @@ dataset = rag_object.list_datasets(name="ragflow")
dataset = dataset[0]
name = 'ragflow_test.txt'
path = './test_data/ragflow_test.txt'
documents =[{"displayed_name":"test_retrieve_chunks.txt","blob":open(path, "rb").read()}]
documents =[{"display_name":"test_retrieve_chunks.txt","blob":open(path, "rb").read()}]
docs = dataset.upload_documents(documents)
doc = docs[0]
doc.add_chunk(content="This is a chunk addition test")