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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4e6b940d7963275f4af5104cde469dd35d41b5cd04b5775a52ee0b3ebed349 |
|
MD5 | 57099ad51aeb7672d3e8dd63e4b1e7ce |
|
BLAKE2b-256 | 0807e5f3b0663b72ba8f63d545aacb200c8df8f9214f76f9cb92f88d285f2cb8 |
Hashes for llama_index_readers_stripe_docs-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 635860d1b3c97b3c49f95a101b5a708776eb94e2836861221a91c6c7713d2661 |
|
MD5 | 352c11229b1c3fffa7f3be9e975e40d5 |
|
BLAKE2b-256 | 09d70cc26a80007f2f9deea64b4513ee217f9729fcb09b6456c710547a952292 |