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
Built Distribution
Hashes for llama_index_readers_stripe_docs-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cf549ab8925f4c6dd353500e00cc7419afad564002a60697f399d311e8f0e5 |
|
MD5 | d84032827994002a3fa413cb363b812a |
|
BLAKE2b-256 | 896b311b5be9836e6f5870ec968ddb089cadc2512a46c8092bfd2f2093c3ea26 |
Hashes for llama_index_readers_stripe_docs-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a86dc9f32560eb30e16394f164002f2da88ce0ecfb723a3a6c3969438e6a80d2 |
|
MD5 | 9e47d3900871deb0405a2c1469832d74 |
|
BLAKE2b-256 | 1a6f3a17bfca39b933789826084d367adde9542e04ae147c51762ca90d5fa7bb |