Library Search
结果页LangChain 四大核心:Chain, Agent, Memory, Tools
在 元器件 / 技术栈 / 知识库 中找到 14 个匹配结果。
技术栈
技术栈
7 个 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: #… 1% 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… 1% Go (Golang) **毕设场景**:
- 批量数据处理(论文数据分析)
- 并发爬虫(数据采集模块)
- 实时推送(WebSocket 服务)
## 第四章:结构体标签与验证
```go
type Student struct {
ID int `json:"id" gorm:"primaryKey"`
Name string `json:"name" binding:"req… 1%
知识库
知识库
7 个 LangChain 四大核心:Chain, Agent, Memory, Tools # LangChain 入门教程:四大核心概念
## 1. Chain:可组合的流水线
Chain 是 LangChain 的核心抽象——将多个步骤串联:
```python
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.output_parsers import StrOutputPars… 3% RAG 问答实战:文档 → 向量 → 回答 # LangChain RAG(检索增强生成)Hello World
## 目标
构建一个最小 RAG 系统:加载文档 → 切分 → 向量化存储 → 检索 → 让 LLM 回答问题。
## 完整代码
```python
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
from langchain_community.doc… 3% Celery 分布式任务队列实战 # Celery 分布式任务队列实战
## 背景
在 Web 应用中,HTTP 请求-响应周期应该是毫秒级的。但如果用户注册后需要发邮件、生成 PDF 报告、处理图像——这些操作可能耗时数秒甚至数分钟。Celery 将这些「太重」的操作从请求线程中剥离到后台 Worker 上执行。
---
## 第 1 章:Celery 架构速览
```
[Web App] --delay()--> [… 2% Prometheus 数据源 + 主机监控 Dashboard ```json
{
"dashboard": {
"title": "主机监控总览",
"tags": ["prometheus", "node"],
"timezone": "browser",
"panels": [
{
"title": "CPU 使用率",
"type": "timeseries",… 2% 用户 CRUD——BaseMapper 与条件构造器 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… 1% 实战篇:命令行待办事项应用 ```python
"""JSON 文件存储模块"""
import json
from pathlib import Path
from typing import List
from models import Task
class TaskStorage:
"""任务的 JSON 文件存储"""
def __init__(self, filepath: str = "t… 1% 入门教程 - 企业级框架核心概念 # Angular 入门教程:企业级框架核心概念
## 一、Angular 是什么?
Angular 是由 Google 维护的企业级前端框架(2016 年发布 Angular 2,与 2010 年的 AngularJS 完全不同)。它是一个**完整的解决方案**——包含路由、表单、HTTP 客户端、状态管理、测试工具、SSR,开箱即用。使用 TypeScript 开发,强制采用 RxJS 进… 1%