Skip to main content

llama-index readers stripe_docs integration

Project description

StripeDocs Loader

This loader asynchronously loads data from the Stripe documentation. It iterates through the Stripe sitemap to get all /docs references.

It is based on the Async Website Loader.

Usage

from llama_index import VectorStoreIndex
from llama_hub.stripe_docs import StripeDocsReader

loader = StripeDocsReader()
documents = loader.load_data()

index = VectorStoreIndex.from_documents(documents)

query_engine = index.as_query_engine()
query_engine.query("How do I accept payments on my website?")

The StripeDocsReader allows you to return plain text docs by setting html_to_text=True. You can also adjust the maximum concurrent requests by setting limit=10.

Filtering

You can filter pages from the Stripe sitemap by adding the filters argument to the load_data method. This allows you to control what pages from the Stripe website, including documentation, will be loaded.

The default filters are set to ["/docs"] to scope everything to docs only.

documents = loader.load_data(filters=["/terminal"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_stripe_docs-0.1.4.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page