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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e441b557c6a055bd9b50bae5bb467b00f5b2d852927e45c47a26efd2ba2654e9 |
|
MD5 | fc52b6ee97f9447ba870e1930640b52d |
|
BLAKE2b-256 | e559e7be3a49dd0aa0b69c7ebd5ba288824a0ad5f3201e0be3779e7543e98ad8 |
Hashes for llama_index_readers_stripe_docs-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc5f9caba405a086daa9dd9c8bce66002cb33f4747fbb86ccbedb7dda7d1678 |
|
MD5 | 1d24a5739f89f85ed808716b2c243b7d |
|
BLAKE2b-256 | 7770fe97edeb9212381e65f20da5a0d67038cc6abcd32a37eb04faad656bcb4d |