Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Wiki retreval service #324

Merged
merged 17 commits into from
Aug 14, 2024
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ the following libraries.
- File Operation
- Text Processing
- Multi Modality
- Wikipedia search and retrieval

**Example Applications**

Expand Down
1 change: 1 addition & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ AgentScope支持使用以下库快速部署本地模型服务。
- 文件操作
- 文本处理
- 多模态生成
- 维基百科搜索

**样例应用**

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
"docker",
"pymongo",
"pymysql",
"bs4",
"beautifulsoup4",
"feedparser",
]

Expand Down Expand Up @@ -83,6 +81,8 @@
"litellm",
"psutil",
"scipy",
"bs4",
PengfeiHePower marked this conversation as resolved.
Show resolved Hide resolved
"beautifulsoup4",
]

distribute_requires = minimal_requires + rpc_requires
Expand Down
13 changes: 13 additions & 0 deletions src/agentscope/service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
from .web.web_digest import digest_webpage, load_web, parse_html_to_text
from .web.download import download_from_url

from .web.wiki import (
wiki_get_category_members,
wiki_get_infobox,
wiki_get_page_content_by_paragraph,
wiki_get_all_wikipedia_tables,
wiki_get_page_images_with_captions,
)


def get_help() -> None:
"""Get help message."""
Expand Down Expand Up @@ -86,6 +94,11 @@ def get_help() -> None:
"dashscope_image_to_text",
"dashscope_text_to_image",
"dashscope_text_to_audio",
"wiki_get_category_members",
"wiki_get_infobox",
"wiki_get_page_content_by_paragraph",
"wiki_get_all_wikipedia_tables",
"wiki_get_page_images_with_captions",
# to be deprecated
"ServiceFactory",
]
Loading