AIGC学习笔记(6)——AI大模型开发工程师

文章目录

AI大模型开发工程师

005 OpenAI大模型案例实践

1 AI 翻译助手需求分析

项目起源
市场价格和市场前景
基于大模型的翻译软件
核心功能设计

2 AI 翻译助手架构设计

架构设计
代码结构设计

3 AI 翻译助手核心功能

文档解析
文档操作
python 复制代码
## 导入操作word文档和PDF文档的依赖库
! pip install pdfplumber
PDF文档操作
  • 读取文档
python 复制代码
import pdfplumber
pdf = pdfplumber.open("测试文档/test1.pdf")
pages = pdf.pages

# 读取所有页面的文本内容
with pdfplumber.open("测试文档/test1.pdf") as pdf:
    for page in pdf.pages:
        print(page.extract_text())

# 获取单页文本(保留布局)
text = pages[0].extract_text(layout=True)
text
表格操作
python 复制代码
table = pages[1].extract_table()
table

import pandas as pd

df = pd.DataFrame(table[1:], columns=table[0])

print(df)
图片操作
python 复制代码
pages[2].images

img = pages[2].images[0]
bbox = (img["x0"], img["top"], img["x1"], img["bottom"])
cropped_page = pages[2].crop(bbox)
cropped_page.to_image()
Prompt封装
  • 方式一
  • 方式二:使用 LangChain

4 AI 翻译助手代码落地

5 AI 翻译助手项目总结

相关推荐
牛哇网络工作室2 小时前
UnityHDRP写实数字人全流程基础5—语音输入和语音识别
android·unity·c#·游戏引擎·aigc·语音识别·xcode
怕浪猫3 小时前
DeepSeek Harness 源码实战第2章:Cordis——驱动 dsh 的插件引擎
aigc·openai·agent
北斗落凡尘5 小时前
LangGraph 入门实战(9)--中断
后端·langchain
王莹月6 小时前
生图API 出问题怎么定位?给调用加 traceId 和结构化日志(nano-banana-pro)
gpt·ai·chatgpt·ai作画·aigc·agi
赵广陆8 小时前
企业实战:主体识别
langchain·pdf·langgraph
网易云信10 小时前
政企共建!全国首个网易智企 AI OPC 社区落地衢州
aigc·agent
豌豆学姐10 小时前
likeadmin-api 数字人任务查询实战:image_human/query 如何处理排队、完成和失败
人工智能·aigc·api·数字人·异步任务
一只叫煤球的猫12 小时前
开个新坑,从头开始完整拆解 Spring AI 2.0 的源码
后端·面试·aigc
李妍.14 小时前
DeepSeek Harness 从安装到使用:一站式 AI 开发工具指南
chatgpt·prompt·aigc·agi
小马过河R14 小时前
Graph Engineering 深度解析:模型越强,越需要给它画好“地图”
人工智能·langchain·graph·ai工程化·harness·驾驭工程