Library Search
结果页

LangChain 四大核心:Chain, Agent, Memory, Tools

在 技术栈 中找到 8 个匹配结果。

返回文档库
技术栈

技术栈

8 个
查看全部
LangChain # LangChain 入门教程:四大核心概念 ## 1. Chain:可组合的流水线 Chain 是 LangChain 的核心抽象——将多个步骤串联: ```python from langchain_core.prompts import ChatPromptTemplate from langchain_core.output_parsers import StrOutputPars… 3% Celery # Celery 分布式任务队列实战 ## 背景 在 Web 应用中,HTTP 请求-响应周期应该是毫秒级的。但如果用户注册后需要发邮件、生成 PDF 报告、处理图像——这些操作可能耗时数秒甚至数分钟。Celery 将这些「太重」的操作从请求线程中剥离到后台 Worker 上执行。 --- ## 第 1 章:Celery 架构速览 ``` [Web App] --delay()--> [… 2% Grafana ```json { "dashboard": { "title": "主机监控总览", "tags": ["prometheus", "node"], "timezone": "browser", "panels": [ { "title": "CPU 使用率", "type": "timeseries",… 2% ONNX | 量化类型 | 精度损失 | 大小 | 速度 | |----------|----------|------|------| | FP32(原始) | 0 | 100% | 1x | | FP16 | <0.1% | 50% | 1.5-2x | | INT8 动态 | <0.5% | 25% | 1.5-2x | | INT8 静态 | <1% | 25% | 2-4x | ## 4. 多平… 2% C# ```html <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>Alpine.js Demo</title> <style> body { font-family: system-ui; max-width: 600px; margin: 50px auto; background: #… 2% Linux check_memory() { local total used free pct read -r total used free <<< "$(free -m | awk '/^Mem:/ {print $2, $3, $4}')" pct=$(( used * 100 / total )) log "内存: ${used}MB / ${total}MB (${… 2% MyBatis-Plus import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.example.demo.entity.User; import com.example.dem… 2% Go (Golang) **毕设场景**: - 批量数据处理(论文数据分析) - 并发爬虫(数据采集模块) - 实时推送(WebSocket 服务) ## 第四章:结构体标签与验证 ```go type Student struct { ID int `json:"id" gorm:"primaryKey"` Name string `json:"name" binding:"req… 2%