Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
OurBuilding Ambient Agents with LangGraph course is now available on LangChain Academy!
Open In ColabOpen on GitHub

Stripe

Stripe is an Irish-American financial services and software as a service (SaaS) company. It offers payment-processing software and application programming interfaces for e-commerce websites and mobile applications.

This notebook covers how to load data from theStripe REST API into a format that can be ingested into LangChain, along with example usage for vectorization.

from langchain.indexesimport VectorstoreIndexCreator
from langchain_community.document_loadersimport StripeLoader

The Stripe API requires an access token, which can be found inside of the Stripe dashboard.

This document loader also requires aresource option which defines what data you want to load.

Following resources are available:

balance_transationsDocumentation

chargesDocumentation

customersDocumentation

eventsDocumentation

refundsDocumentation

disputesDocumentation

stripe_loader= StripeLoader("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([stripe_loader])
stripe_doc_retriever= index.vectorstore.as_retriever()

Related


[8]ページ先頭

©2009-2025 Movatter.jp