Skip to main content
Stripe는 아일랜드계 미국 금융 서비스 및 SaaS(Software as a Service) 기업입니다. 전자상거래 웹사이트 및 모바일 애플리케이션을 위한 결제 처리 소프트웨어와 애플리케이션 프로그래밍 인터페이스를 제공합니다.
이 노트북은 Stripe REST API로부터 데이터를 로드하여 LangChain에 수집할 수 있는 형식으로 변환하는 방법과 벡터화를 위한 사용 예제를 다룹니다.
from langchain.indexes import VectorstoreIndexCreator
from langchain_community.document_loaders import StripeLoader
Stripe API는 Stripe 대시보드 내에서 찾을 수 있는 액세스 토큰이 필요합니다. 이 문서 로더는 로드하려는 데이터를 정의하는 resource 옵션도 필요합니다. 다음 리소스를 사용할 수 있습니다: balance_transations 문서 charges 문서 customers 문서 events 문서 refunds 문서 disputes 문서
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()

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I