feat(llm): Send images to model and enhance processing prompt

This commit is contained in:
2025-10-25 22:51:54 +11:00
parent 37d4facee3
commit 4f29d5c814
3 changed files with 94 additions and 45 deletions

View File

@@ -49,3 +49,13 @@ GOOGLE_API_KEY = 您的Google API密钥
- [docling](https://github.com/docling-project/docling)
- [langchain](https://github.com/langchain-ai/langchain)
## 常见问题
### docling 转换 PDF 时报错
可能是 PDF 文件不规范导致的,可以尝试使用 ghostscript 规范文件。
```shell
gs -o <output.pdf> -sDEVICE=pdfwrite -dPDFSETTINGS=/default <input.pdf>
```