public class DocRefineSkill extends AbstractDocSkill
AbstractDocSkill.PromptParam| Constructor and Description |
|---|
DocRefineSkill(LLM llm)
初始化
|
| Modifier and Type | Method and Description |
|---|---|
String |
executeWithDocs(List<Document> docs,
String question)
文档问答
|
void |
setQaPrompt(String promptTemplate)
设置自定义提问prompt
|
void |
setRefinePrompt(String promptTemplate)
设置自定义refine prompt
|
execute, execute, executeWithDocs, executeWithTexts, executeWithTextspublic DocRefineSkill(LLM llm)
llm - llm参数配置Copyright © 2024. All rights reserved.