A demo implementation of the StripeDocsReader LlamaIndex loader
This repo contains an example of using the LlamaIndex StripeDocsReader. This loader iterates through Stripe's sitemap and consumes all of the documentation allowing users to create embeddings from them and then do RAG on those embeddings.
Note: This demo is likely not better than GPT. The RAG approach does not utilize any of the customization that LlamaIndex provides. GPT is also already trained on this content.
pip install -r requirements.txt
.env
filecp ./.env.example ./.env
Add your Open AI API key to your .env
Create a free Pinecode account and add the API key to your .env
python build.py
The build.py
script will iterate through all of the Stripe docs using the StripeDocsLoader
. Once it iterates through them, it will create embeddings with Open AI's ada model and upload them to Pinecone.
This process can take 3-4 hours so you'll have to be patient!
One thing to note, sometimes the Stripe sitemap 404s. If that happens, just run the script again. I'll fix this upstream in the future.
python query.py
Once build.py
has completed, you can run query.py
to interact with it. You'll also be able to explore your index in the Pinecone interface.