Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/ai-langchain4j
基于若依-vue-plus框架的LangChain4j AI大模型集成标准规范。全面规范模型配置管理、类型安全服务定义、RAG(检索增强生成)实现、流式响应处理及安全性保障。 触发场景: - 开发智能客服系统、文档问答助手、代码生成工具 - 集成LLM大模型接口(OpenAI、智谱AI、通义千问等) - 实现知识库问答、文档检索、语义搜索功能 - 开发需要流式响应的AI交互界面 - 构建RAG(检索增强生成)应用 触发词:AI集成、LangChain4j、大模型、RAG、流式输出、智谱AI、通义千问、OpenAI、向量检索、嵌入模型、Prompt工程
Passed 20 of 23 test cases with the skill, and 11 of 23 without it.
and 9 more in the full report
9 fixed11 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
Which YAML key prefix manages LLM settings such as provider, api-key, and temperature in application.yml for RuoYi-Vue-Plus?
| Checked | Without skill | With skill |
|---|---|---|
| Uses prefix ai.model for model properties. | Missed | Passed |
The instructions your model reads when the skill loads.
本规范基于LangChain4j框架,为若依-vue-plus项目定义统一的AI大模型集成标准。确保代码的可维护性、安全性和扩展性。
目标:实现模型配置的集中管理和类型安全的AI服务定义。
详细说明:
ChatLanguageModel构建器配置大模型,严禁在代码中硬编码API Keyapplication.yml读取AiServices接口定义模式,将系统提示词(System Message)与业务逻辑解耦实现要点:
@ConfigurationProperties绑定配置// ============ 配置属性类 ============
@Data
@Component
@ConfigurationProperties(prefix = "ai.model")
public class AiProperties {
private String provider; // openai/zhipu/qwen
private String baseUrl;
private String apiKey;
private String modelName;
private Double temperature = 0.7;
private Integer maxTokens = 2000;
private Integer timeout = 60; // 秒
}
// ============ 配置类:动态初始化模型 ============
@Configuration
@EnableConfigurationProperties(AiProperties.class)
test cases passed, vs 11 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.