StackExchange
Stack Exchange 是一个问答 (Q&A) 网站网络,涵盖各个领域的 Q&A,每个网站专注于特定主题,其问题、答案和用户须经历声望奖励流程。声望系统使得网站能够自我管理。
StackExchange 组件将 StackExchange API 集成到 LangChain 中,允许访问 Stack Exchange 网络中的 StackOverflow 网站。Stack Overflow 专注于计算机编程。
本笔记将介绍如何使用 StackExchange 组件。
我们首先需要安装实现 Stack Exchange API 的 Python 包 stackapi。
pip install --upgrade stackapi
from langchain_community.utilities import StackExchangeAPIWrapper
stackexchange = StackExchangeAPIWrapper()
stackexchange.run("zsh: command not found: python")
API Reference:StackExchangeAPIWrapper
Related
- Tool conceptual guide
- Tool how-to guides