暂存
This commit is contained in:
@@ -5,7 +5,10 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Chunk 结构体
|
||||
// 数据集内知识块管理
|
||||
// 参考: https://ragflow.com.cn/docs/dev/http_api_reference#数据集内知识块管理
|
||||
|
||||
// Chunk 知识块结构体
|
||||
type Chunk struct {
|
||||
Id string `json:"id"`
|
||||
Content string `json:"content"`
|
||||
@@ -120,8 +123,9 @@ func (c *Client) ListChunks(ctx context.Context, datasetId, documentId string, r
|
||||
params["id"] = req.Id
|
||||
}
|
||||
|
||||
for k, v := range params {
|
||||
path += fmt.Sprintf("%s=%v&", k, v)
|
||||
query := buildQueryString(params)
|
||||
if query != "" {
|
||||
path += "?" + query
|
||||
}
|
||||
|
||||
var res ListChunksRes
|
||||
|
||||
Reference in New Issue
Block a user