Troubleshooting a Python AI RAG Application

Here are some helpful resources that helped me troubleshoot my attempt at getting an OpenAI “retrieval augmented generation” (RAG) application that is built in the video tutorial below.

It took a bit of effort but I was finally able to get my copy of the application to work but I’m currently stuck on the “Rate Limiting” error. Apparently, I need to give OpenAI authorization to raid my wallet to run a RAG application at any kind of scale.

Original GitHub Project from Video

https://github.com/pixegami/langchain-rag-tutorial/tree/main

Setting your OpenAI API Key using Python environment variables.

https://github.com/langchain-ai/langchain/issues/7189

Issue with OpenAI API Rate Limiting Errors:

https://help.openai.com/en/articles/6891829-error-code-429-rate-limit-reached-for-requests

How to Locate your Python Installation Path

python -c "import os, sys; print(os.path.dirname(sys.executable))"

https://stackoverflow.com/questions/647515/how-can-i-find-where-python-is-installed-on-windows

How to Upgrade SQLite3 in Python



SQLite Website for Downloading the SQLite Update for Chroma / OpenAI project

https://www.sqlite.org/download.html

My GitHub Solution After Troubleshooting

https://github.com/webzcom/langchain-rag-tutorial-main/tree/main

Author: Rick Cable / AKA Cyber Abyss

A 16 year US Navy Veteran with 25+ years experience in various IT Roles in the US Navy, Startups and Healthcare. Founder of FinditClassifieds.com in 1997 to present and co-founder of Sports Card Collector Software startup, LK2 Software 1999-2002. For last 7 years working as a full-stack developer supporting multiple agile teams and products in a large healthcare organization. Part-time Cyber Researcher, Aspiring Hacker, Lock Picker and OSINT enthusiast.