链载Ai

标题: DB-GPT V0.6.2 版本更新:牵手libro社区、GraphRAG图谱构建能力增强等 [打印本页]

作者: 链载Ai    时间: 昨天 11:52
标题: DB-GPT V0.6.2 版本更新:牵手libro社区、GraphRAG图谱构建能力增强等

DB-GPT V0.6.2版本现已上线,快速预览新特性ingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;font-size: 14px;letter-spacing: 0.25px;text-align: start;width: 24px !important;visibility: visible !important;"/>:


新特性
1、DB-GPT 社区和 libro 社区共同发布 AWELNotebook 功能

libro:灵活定制、轻松集成的 Notebook 产品方案。

社区地址:https://github.com/difizen/libro


使用教程:
1.进入AWEL工作流,进入all_in_one_entranceworkflow

2.新建Notebook

3.编写awel算子并执行
import asyncio
from dbgpt.core.awel import DAG, MapOperator
with DAG("awel_hello_world") as dag:task = MapOperator(map_function=lambda x: print(f"Hello, {x}!"))
await task.call(call_data="world")


ingFang SC", system-ui, -apple-system, "system-ui", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;-webkit-tap-highlight-color: transparent;outline: 0px;width: 18px !important;visibility: visible !important;"/>2、GraphRAG图谱构建能力增强,支持并行知识抽取
支持三元组图谱与文档结构图谱混合分析,通过并行知识抽取提升知识图谱图谱索引构建性能。
DB-GPT GraphRAG微软GraphRAG在文档抽取token消耗,Global/Local检索性能的对比。


DB-GPT
GraphRAG (Microsoft)
Doc Tokens
42631
42631
Triplets Graph
nodes: 666; edges: 1066
nodes: 644; edges: 1048
Doc Structure Graph
nodes: 123; edges: 1095
不支持
Prompt Tokens
361054
744990
Completion Tokens
41315
227230

Total Tokens

402369
972220
Global Search
10s
40s
Local Search
15s
15s

ingFang SC", system-ui, -apple-system, "system-ui", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;-webkit-tap-highlight-color: transparent;outline: 0px;width: 18px !important;visibility: visible !important;"/>3、AWEL 支持在沙箱环境中执行代码,可以通过code算子处理模型返回值。
注意: 沙箱环境依赖 Lyric 的支持,
Lyric: A Rust-powered secure runtime for AI-Agent.
Lyric地址https://github.com/lyric-project/lyric

安装依赖:
pipinstall-e".[code]"


Lyric使用示例:
import asynciofrom lyric import DefaultLyricDriver
python_code = """def add(a, b):return a + bresult = add(1, 2)print(result)"""
js_code = """console.log('Hello from JavaScript!');"""
async def main():lcd = DefaultLyricDriver(host="localhost", log_level="ERROR")lcd.start()
# Load workers(default: Python, JavaScript)await lcd.lyric.load_default_workers()
# Execute Python codepy_res = await lcd.exec(python_code, "python")print(py_res)
# Execute JavaScript codejs_res = await lcd.exec(js_code, "javascript")print(js_res)
# Stop the driverlcd.stop()
asyncio.run(main())

ingFang SC", system-ui, -apple-system, "system-ui", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;-webkit-tap-highlight-color: transparent;outline: 0px;width: 18px !important;visibility: visible !important;"/>4、PDF 文本抽取优化,支持表格抽取功能


ingFang SC", system-ui, -apple-system, "system-ui", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;-webkit-tap-highlight-color: transparent;outline: 0px;width: 18px !important;visibility: visible !important;"/>5、支持Qwen2.5coder模型


ingFang SC", system-ui, -apple-system, "system-ui", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;-webkit-tap-highlight-color: transparent;outline: 0px;width: 18px !important;visibility: visible !important;"/>6、支持科大讯飞sparkultra/max/pro/lite模型


ingFang SC", system-ui, -apple-system, "system-ui", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);width: 29px;visibility: visible !important;height: 28px;"/>ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: var(--articleFontsize);letter-spacing: 0.034em;">Bug 修复








欢迎光临 链载Ai (https://www.lianzai.com/) Powered by Discuz! X3.5