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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2148fce7dd97d54604520dc63bc1d7fcf7772eb6f8e5ae72f567cd5a646adbd1 |
|
MD5 | 406cefd59f16727c51575c967837dbde |
|
BLAKE2b-256 | a63464905182b563ac8114af62787de489c656b8077d63c580bdf25e00f9ef45 |
Hashes for llama_index_readers_stripe_docs-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 205e4fd6987f089784a8b2fee22538bfc5aa65ef0951c62225e50df3567ed6d5 |
|
MD5 | 5c4d81f4d4813b06f71e63603a81b9c4 |
|
BLAKE2b-256 | b61019699eb71f7ee1eb72226496b4530f786646ad40bd55a36307da650eea26 |