基于langgraph生成摘要
-
处理长文本,通过分块、并行处理和递归合并的方式,最终生成一个连贯的总结。
-
读取本地一个readme.md文件,然后处理:
程序运行过程
/root/miniconda3/envs/05_ep_dev/bin/python /home/zhangbin/perfwork/01_ai/05_ep_dev/expert/src/test/sumory/长文本摘要.py
USER_AGENT environment variable not set, consider setting it to identify your requests.
Created a chunk of size 1592, which is longer than the specified 1000
Created a chunk of size 1383,