Hello!
Many people often ask me a simple question: How can I get started with building Gen AI applications?
They face various challenges, such as:
Limited access to OpenAI API keys.
Organizational restrictions that prevent using OpenAI services.
Uncertainty about where to find resources to begin.
Let me give you a straightforward solution.
Step 1: Access the Notebook
We’ve created a simple playbook in the form of a notebook to help you get started. Here’s what you need to do:
Go to the provided link and open it in Google Colab Notebook - https://colab.research.google.com/drive/1-uskO605mspHnKjrjL1C3QlV2jcExhiE?usp=sharing.
Sign in to your Google account to access the notebook.
Step 2: Get a Detoxio AI Key
If you don’t have an OpenAI API key, you can request a Detoxio AI key instead:
Visit the Detoxio AI website.
Navigate to the Contact Us section - https://detoxio.ai/contact_us
Provide your details, and we’ll send you a key.
Once you receive your Detoxio AI key, follow these steps:
Open the notebook in Colab.
Go to the Secrets section.
Enable secrets and add a new one called
OPENAI_API_KEY
.Paste your Detoxio AI key there.
Step 3: Start Executing
Now you’re ready to go!
Click Connect in Colab and start executing the cells in the notebook.
Here’s how it works:
Instead of the OpenAI API key, you’re now using the Detoxio AI key.
The requests are routed through a specific base URL, which forwards them to the appropriate OpenAI endpoint.
With this small change, you can start building and experimenting with Gen AI applications without needing direct access to an OpenAI key.
Troubleshooting
If you encounter an authorization error, it’s likely due to an issue with the key. To resolve this:
Update the key in the Secrets section.
Save the new key and try running the notebook again.
Step 4: Explore Tutorials
Once your setup is running, you can explore OpenAI tutorials. I recommend starting with the basics:
Chat models using OpenAI.
Hands-on tutorials with LangChain: https://python.langchain.com/docs/tutorials/
You can then dive deeper into advanced tutorials available on the OpenAI and LangChain websites to enhance your skills and extend your applications.
That’s it! You’re all set to begin your journey into Gen AI development.
All the best! Thank you.
Share this post