Skip to content

Commit 678f11d

Browse files
author
maekblack
committed
feat: 使用 Jina AI Reader 将 URL 转换为 LLM 友好的 Markdown 格式
1 parent 1d1a3a2 commit 678f11d

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
2.63 KB
Binary file not shown.

tools/tool_jina_reader/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Jina Reader 工具
2+
3+
使用 Jina AI Reader 将 URL 转换为 LLM 友好的 Markdown 格式。
4+
5+
## 功能特点
6+
7+
- URL 转 Markdown
8+
- 智能内容提取
9+
- 自动清理噪音
10+
- 支持中文优化
11+
12+
## 参数说明
13+
14+
**输入参数**: url, return_format
15+
```python
16+
def read_url_with_jina(
17+
url: str,
18+
return_format: str,
19+
api_key: Optional[str] = None
20+
) -> Dict[str, Any]:
21+
"""使用 Jina Reader 读取 URL 内容
22+
23+
Args:
24+
url: 要读取的网页 URL
25+
api_key: Jina API 密钥 (可选)
26+
return_format: 返回格式 markdown/html
27+
28+
Returns:
29+
Dict[str, Any]: 包含读取结果的字典
30+
"""
31+
```
32+
**启动参数**: api_key (可选)
33+
34+
## 使用示例
35+
36+
```
37+
url: https://example.com/article
38+
return_format: markdown
39+
```

tools/tool_jina_reader/data.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Jina Reader
2+
tags:
3+
- 内容处理
4+
title: Jina AI Reader
5+
description: 使用 Jina AI Reader 将任意 URL 转换为 LLM 友好的 Markdown 格式,支持全文提取和智能清理

tools/tool_jina_reader/logo.png

245 Bytes
Loading

0 commit comments

Comments
 (0)