Skip to content

Commit

Permalink
DRAFT: Updated chunk APIs (#2901)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?



### Type of change


- [x] Documentation Update

---------

Signed-off-by: Jin Hai <[email protected]>
Co-authored-by: Jin Hai <[email protected]>
  • Loading branch information
writinwaters and JinHai-CN authored Oct 18, 2024
1 parent 526fcbb commit cec2080
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 142 deletions.
6 changes: 3 additions & 3 deletions api/http_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Creates a dataset.
# "name": name is required and can't be duplicated.
# "tenant_id": tenant_id must not be provided.
# "embedding_model": embedding_model must not be provided.
# "navie" means general.
# "naive" means general.
curl --request POST \
--url http://{address}/api/v1/dataset \
--header 'Content-Type: application/json' \
Expand Down Expand Up @@ -236,7 +236,7 @@ Updates a dataset by its id.
# "chunk_count": If you update chunk_count, it can't be changed.
# "document_count": If you update document_count, it can't be changed.
# "parse_method": If you update parse_method, chunk_count must be 0.
# "navie" means general.
# "naive" means general.
curl --request PUT \
--url http://{address}/api/v1/dataset/{dataset_id} \
--header 'Content-Type: application/json' \
Expand All @@ -247,7 +247,7 @@ curl --request PUT \
"embedding_model": "BAAI/bge-zh-v1.5",
"chunk_count": 0,
"document_count": 0,
"parse_method": "navie"
"parse_method": "naive"
}'
```

Expand Down
Loading

0 comments on commit cec2080

Please sign in to comment.