llama-index readers stripe_docs integration
Project description
StripeDocs Loader
pip install llama-index-readers-stripe-docs
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.core import VectorStoreIndex
from llama_index.readers.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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_stripe_docs-0.4.0.tar.gz.
File metadata
- Download URL: llama_index_readers_stripe_docs-0.4.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ff85a312b0677d605aad520e0b30c675ca2a91269e7829ad8b821fa78daa178
|
|
| MD5 |
876fade09995ee918dd005c4fb3725cf
|
|
| BLAKE2b-256 |
a155a7f56543f1f669677357afbebda0e55e4de2476be5b2d0ea9fa804d3686b
|
File details
Details for the file llama_index_readers_stripe_docs-0.4.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_stripe_docs-0.4.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1fece7bf3042d01e328cf2db3f7823e0f5d226589bb6a8dea82902754fe1fb
|
|
| MD5 |
c2a46c737d1232d4363fb93fb24a8439
|
|
| BLAKE2b-256 |
f6c3916291940308751f17ff7418d6af701200def12d4d54a573e996727f2e7e
|