AS AgentScopeAPI 手册 / API Reference

SparseEmbedding

@JsonIgnoreProperties(ignoreUnknown = true) public class SparseEmbedding
源码Source io/agentscope/core/rag/integration/haystack/model/SparseEmbedding.java:22–81

Sparse 向量化,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.haystack.model 包。核心成员包括 getIndices、getValues、toString。

A class in io.agentscope.core.rag.integration.haystack.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.core.rag.integration.haystack.model.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.core.rag.integration.haystack.model that talks to model services and returns generated or embedded output.

方法摘要Method Summary

方法Method说明Description
public List<Integer> getIndices()
获取索引。
Returns the indices.
public List<Float> getValues()
获取值。
Returns the values.
public String toString()
返回 `toString` 结果。
Returns the to string.

方法详情Method Detail

getIndices

public List<Integer> getIndices()

获取索引。

Returns the indices.

返回Returns List<Integer>
返回列出。Returns list.
源码Source io/agentscope/core/rag/integration/haystack/model/SparseEmbedding.java:36–38

getValues

public List<Float> getValues()

获取值。

Returns the values.

返回Returns List<Float>
返回列出。Returns list.
源码Source io/agentscope/core/rag/integration/haystack/model/SparseEmbedding.java:40–42

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/haystack/model/SparseEmbedding.java:77–80

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器,用于构建并配置目标实例。位于 io.agentscope.core.rag.integration.haystack.model 包。核心成员包括 indices、values、build。

A class in io.agentscope.core.rag.integration.haystack.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.core.rag.integration.haystack.model.

基于官方固定版本源码静态生成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.