Enhancing Relational Database Agents with Retrieval Augmented Generation (RAG)

In the GDSC7 challenge, I tackled the issue of reducing API costs while preserving answer quality in agent systems. The solution involved implementing semantic search to efficiently handle gender-related queries without explicit gender columns in the database. By using embeddings for all string columns and combining questions with answers, we minimized unnecessary database queries, enhancing system efficiency and reducing costs.

How to override a method of instantiated object in python

In this post, I describe how I overcame AWS login challenges in a coding competition by using a method override trick. By defining a new function for authentication and dynamically replacing the existing method in an instantiated object, I was able to experiment with the Embedchain package without altering its class definition. This technique allowed for seamless integration with AWS services and added a valuable tool to my programming arsenal.

How to override Django-Allauth default templates

The Problem:

I chose the package ‘django-allauth’ to help me with the login management of a SaaS code base that I am building. All my installed packages are inside of my virtual environment folder (venv) inside my project folder.

I had already created a base layout for the landing page. However, after installing the ‘django-allauth’ and configuring it, I noticed that the login page did not inherited the layout configuration from my base template.