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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ea69bd3b66d81dd50ec791949ae152b1abb083732ecc1ea8d72432228ea1ab |
|
MD5 | 054b947714043359c7e421d777d169c0 |
|
BLAKE2b-256 | eb1fdfe1af46ec3139c6657c3c185475dfbc11008fe1b5a5754618b5b84e6e12 |
Hashes for llama_index_readers_stripe_docs-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4999ca3819077b7789ca2934e6d9a8d571045d49d53f5d84e2dc68f1a47d061 |
|
MD5 | de94841490565d6437db235924c6ca28 |
|
BLAKE2b-256 | c12f9b5b0eadcf0bcd47adb8c47686d08c06de8491b98836a5e2808a3671566d |