Iugu
Iugu is a Brazilian services and software as a service (SaaS) company. It offers payment-processing software and application programming interfaces for e-commerce websites and mobile applications.
本笔记本介绍了如何将数据从 Iugu REST API 加载为可被 LangChain 摄入的格式,并提供了向量化用法的示例。
from langchain.indexes import VectorstoreIndexCreator
from langchain_community.document_loaders import IuguLoader
API 参考:VectorstoreIndexCreator | IuguLoader
Iugu API 需要一个访问令牌,该令牌可在 Iugu 仪表板中找到。
此文档加载器还需要一个 resource 选项,用于定义您要加载的数据。
以下资源可用:
Documentation 文档
iugu_loader = IuguLoader("charges")
# Create a vectorstore retriever from the loader
# see https://python.langchain.com/en/latest/modules/data_connection/getting_started.html for more details
index = VectorstoreIndexCreator().from_loaders([iugu_loader])
iugu_doc_retriever = index.vectorstore.as_retriever()