-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
var dashScopeApi = new DashScopeApi(System.getenv("DASHSCOPE_API_KEY"));
DocumentRetriever retriever = new DashScopeDocumentRetriever(dashScopeApi,
DashScopeDocumentRetrieverOptions.builder()
.withIndexName("spring-ai知识库")
.build());
List documentList = retriever.retrieve("What's spring ai");
上述代码中DashScopeApi(System.getenv("DASHSCOPE_API_KEY")),需要传入7个参数,而示例代码只传了一个参数
文档详细信息
⚠ 请勿编辑此部分。sca.aliyun.com ➟ GitHub 问题链接必须具有此部分。
- Version ID: 2bac3769-2613-f739-4796-0737c7cd8919
- Content: 文档检索 (Document Retriever)
- Content Source: https://github.com/springaialibaba/spring-ai-alibaba-website/blob/main/src/content/docs/1.0.0.2/zh-cn/tutorials/basics/retriever.md
- Service: 用户指南/开发指南/运维指南
Metadata
Metadata
Assignees
Labels
No labels