Skip to main content

llama-index readers stripe_docs integration

Project description

StripeDocs Loader

pip install llama-index-readers-stripe-docs

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.core import VectorStoreIndex
from llama_index.readers.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.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_readers_stripe_docs-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_stripe_docs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 37a0ee3a119515ca40da53538efb318b80abffc39aeff3f865de818ddcdefa0f
MD5 3ce1a1614f17bf08104df459b1cdf253
BLAKE2b-256 496bb3834065083b08ef49e2a399c1991a80c9ca7c390aaf4c309afa3b9be59c

See more details on using hashes here.

File details

Details for the file llama_index_readers_stripe_docs-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_stripe_docs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30475063b7c292dfb70ef8b73873129da506e6f0cb8415ea708637cad1c6a35e
MD5 cb21af2c98d809f5ca43aefa29a87a91
BLAKE2b-256 b03eab272f857c18b6516433cb62b2b648db83e5909d29fcaf999b1592fb475b

See more details on using hashes here.

Supported by

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