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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f62f34308718d46a16afc0d6d9761fb3f5e081bdcc1a66f3ba0d352bda75070c |
|
MD5 | 0053f9c7c913968185b5d55a5c43bbc5 |
|
BLAKE2b-256 | bb4e5a8e884ec36ea1997bfee07348fc4f1d06816bf986e7275b78f29563f700 |
Hashes for llama_index_readers_stripe_docs-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c21ee1aaee0dd70a3877bbb5151ec91ce53eaeb789d358b27a1c15c93322ff |
|
MD5 | ab511d0b6972698b666de3f847e89863 |
|
BLAKE2b-256 | 397cdc2b97588fd85e58d6d1723f66e23ebef4e677d111af2e771934c88572c8 |