AS AgentScopeAPI 手册 / API Reference

DocAgg

@JsonIgnoreProperties(ignoreUnknown = true) public static class DocAgg
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:112–161

文档 Agg,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.ragflow.model 包。核心成员包括 getDocId、setDocId、getDocName、setDocName、getCount、setCount。

Document aggregation information.

This class represents document-level aggregation data returned by RAGFlow API, showing how many chunks were retrieved from each document.

方法摘要Method Summary

方法Method说明Description
public String getDocId()
获取文档标识。
Returns the doc id.
public void setDocId(String docId)
设置文档标识。
Sets the doc id.
public String getDocName()
获取文档名称。
Returns the doc name.
public void setDocName(String docName)
设置文档名称。
Sets the doc name.
public Integer getCount()
获取数量。
Returns the count.
public void setCount(Integer count)
设置数量。
Sets the count.
public String toString()
返回 `toString` 结果。
Returns the to string.

方法详情Method Detail

getDocId

public String getDocId()

获取文档标识。

Returns the doc id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:124–126

setDocId

public void setDocId(String docId)

设置文档标识。

Sets the doc id.

参数Parameters
名称Name类型Type说明Description
docIdString文档标识(类型 `String`)。The doc id.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:128–130

getDocName

public String getDocName()

获取文档名称。

Returns the doc name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:132–134

setDocName

public void setDocName(String docName)

设置文档名称。

Sets the doc name.

参数Parameters
名称Name类型Type说明Description
docNameString文档名称(类型 `String`)。The doc name.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:136–138

getCount

public Integer getCount()

获取数量。

Returns the count.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:140–142

setCount

public void setCount(Integer count)

设置数量。

Sets the count.

参数Parameters
名称Name类型Type说明Description
countInteger数量(类型 `Integer`)。The count.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:144–146

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:148–160
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.