{"id":"3ea1bea7-b65d-4b39-b117-80d5d0c8a198","entityType":"agent","slug":"dify-huiyi-ollama-qwen2","name":"基于本地 Ollama Qwen2 的聊天机器人","canonicalUrl":"https://www.xpersona.co/agent/dify-huiyi-ollama-qwen2","canonicalPath":"/agent/dify-huiyi-ollama-qwen2","generatedAt":"2026-10-09T19:28:35.324Z","source":"DIFY_MARKETPLACE","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T01:20:56.855Z","emptyReason":null},"description":"这是一个通用聊天机器人，使用部署在本地 Ollama 上的 Qwen2:7b 作为大语言模型（LLM）后端。它支持自由对话、基于文档的 RAG（检索增强生成）知识问答、自定义系统提示词（System Prompt）修改，并可嵌入网站或通过 API 调用以满足业务需求。 1. 安装并启动 Ollama 服务，设置环境变量 OLLAMA_HOST=0.0.0.0:11434，然后执行以下命令下载模型： ollama pull qwen2:7b ollama pull qwen3-embedding 2. 在 Dify 的 Model Provider 页面中添加 Ollama 模型源，将 Base URL 设置为： http://host.docker.internal:11434 并启用 LLM 和 Text Embedding 两种模型类型。 3. 完成默认模型配置，将： qwen2:7b 设置为默认 LLM 模型； qwen3-embedding 设置为默认向量嵌入（Embedding）模型。 4. 如需使用文档检索功能，请创建自己的知识库（Knowledge Base）并上传相关文件。 5. 在应用配置中编辑系统提示词（System Prompt），自定义机器人的回复逻辑。完成配置后，即可","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.","installCommand":null,"sourceUrl":"https://marketplace.dify.ai/api/v1/templates/7cdd5bda-4a0e-4ec9-b7ba-ddbaa4b14e2f","homepage":null,"primaryLinks":[{"label":"View on Dify","url":"https://marketplace.dify.ai/api/v1/templates/7cdd5bda-4a0e-4ec9-b7ba-ddbaa4b14e2f","kind":"source"}],"safetyScore":82,"overallRank":88.1,"popularityScore":95,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"这是一个通用聊天机器人，使用部署在本地 Ollama 上的 Qwen2:7b 作为大语言模型（LLM）后端。它支持自由对话、基于文档的 RAG（检索增强生成）知识问答、自定义系统提示词（System Prompt）修改，并可嵌入网站或通过 API 调用以满足业务需求。 1. 安装并启动 Ollama 服务，设置环境变量"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T01:20:56.855Z","emptyReason":null},"protocols":[],"capabilities":[{"label":"workflow","status":"self-declared"},{"label":"operations","status":"self-declared"},{"label":"others","status":"self-declared"},{"label":"ollama","status":"self-declared"}],"verifiedCount":0,"selfDeclaredCount":4,"capabilityMatrix":{"rows":[{"key":"workflow","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"operations","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"others","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"ollama","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"}],"flattenedTokens":"capability:workflow|supported|profile capability:operations|supported|profile capability:others|supported|profile capability:ollama|supported|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-10-09T01:20:56.855Z","emptyReason":"No source adoption metrics were available."},"stars":null,"forks":null,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-10-09T01:20:56.850Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T01:20:56.855Z","lastCrawledAt":"2026-10-09T01:20:56.850Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T01:20:56.850Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"Dify","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":null,"setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":[]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"DIFY_MARKETPLACE","generatedAt":"2026-10-09T19:28:35.324Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/dify-huiyi-ollama-qwen2/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"Dify","verified":false,"confidence":"high","updatedAt":"2026-10-09T01:20:56.855Z","emptyReason":null},"readme":"1. 安装并启动 Ollama 服务，设置环境变量 OLLAMA_HOST=0.0.0.0:11434，然后执行以下命令下载模型：\nollama pull qwen2:7b\nollama pull qwen3-embedding\n\n2. 在 Dify 的 Model Provider 页面中添加 Ollama 模型源，将 Base URL 设置为：\nhttp://host.docker.internal:11434\n并启用 LLM 和 Text Embedding 两种模型类型。\n\n3. 完成默认模型配置，将：\n`qwen2:7b` 设置为默认 LLM 模型；\n`qwen3-embedding` 设置为默认向量嵌入（Embedding）模型。\n\n4. 如需使用文档检索功能，请创建自己的知识库（Knowledge Base）并上传相关文件。\n\n5. 在应用配置中编辑系统提示词（System Prompt），自定义机器人的回复逻辑。完成配置后，即可发布应用，用于网站嵌入或通过 API 进行调用。","readmeExcerpt":"1. 安装并启动 Ollama 服务，设置环境变量 OLLAMA_HOST=0.0.0.0:11434，然后执行以下命令下载模型： ollama pull qwen2:7b ollama pull qwen3-embedding 2. 在 Dify 的 Model Provider 页面中添加 Ollama 模型源，将 Base URL 设置为： http://host.docker.internal:11434 并启用 LLM 和 Text Embedding 两种模型类型。 3. 完成默认模型配置，将： qwen2:7b 设置为默认 LLM 模型； qwen3-embedding 设置为默认向量嵌入（Embedding）模型。 4. 如需使用文档检索功能，请创建自己的知识库（Knowledge Base）并上传相关文件。 5. 在应用配置中编辑系统提示词（System Prompt），自定义机器人的回复逻辑。完成配置后，即可","codeSnippets":[],"executableExamples":[],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["zh-Hans"],"docsSourceLabel":"Dify","editorialOverview":"这是一个通用聊天机器人，使用部署在本地 Ollama 上的 Qwen2:7b 作为大语言模型（LLM）后端。它支持自由对话、基于文档的 RAG（检索增强生成）知识问答、自定义系统提示词（System Prompt）修改，并可嵌入网站或通过 API 调用以满足业务需求。 1. 安装并启动 Ollama 服务，设置环境变量 OLLAMA_HOST=0.0.0.0:11434，然后执行以下命令下载模型： ollama pull qwen2:7b ollama pull qwen3-embedding 2. 在 Dify 的 Model Provider 页面中添加 Ollama 模型源，将 Base URL 设置为： http://host.docker.internal:11434 并启用 LLM 和 Text Embedding 两种模型类型。 3. 完成默认模型配置，将： qwen2:7b 设置为默认 LLM 模型； qwen3-embedding 设置为默认向量嵌入（Embedding）模型。 4. 如需使用文档检索功能，请创建自己的知识库（Knowledge Base）并上传相关文件。 5. 在应用配置中编辑系统提示词（System Prompt），自定义机器人的回复逻辑。完成配置后，即可","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":354,"uniquenessScore":66,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T01:20:56.855Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T01:20:56.855Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"agent-directory","verified":false,"confidence":"low","updatedAt":"2026-10-09T19:28:35.324Z","emptyReason":"No close protocol neighbors were found."},"items":[],"links":{"hub":"/agent","source":"/agent/source/dify_marketplace","protocols":[]}}}