Virtual Teaching Assistant (Virtual TA) is an innovative, intelligent and automated assistant designed specifically for the Tools in Data Science (TDS) course offered by the IIT Madras Online Degree Program. This cutting-edge system revolutionizes the learning experience by providing students with accurate, context-aware answers to their questions.
To use the chatbot, send a
POST
request to the
/api
endpoint with a JSON body.
Optionally, include an image for analysis.
Here enter your deployed API endpoint URL for testing purposes.
curl -X POST -H "Content-Type: application/json" -d '{
"question": "Should I use gpt-4o-mini which AI proxy supports, or gpt3.5 turbo?",
"image": "'"$(curl -s "https://tds.s-anand.net/images/project-tds-virtual-ta-q1.webp" | base64 -w0)"'"
}' https://app.example.com/api
curl -X POST -H "Content-Type: application/json" -d "$(jq -n \
--arg question 'Should I use gpt-4o-mini which AI proxy supports, or gpt3.5 turbo?' \
--arg image "$(curl -s 'https://tds.s-anand.net/images/project-tds-virtual-ta-q1.webp' | base64 -w0)" \
'{question: $question, image: $image}')" https://app.example.com/api
Requirements: Install jq
if
missing:
sudo apt install jq # Debian/Ubuntu
sudo dnf install jq # Fedora
curl -X POST -H "Content-Type: application/json" -d "$(jq -n \
--arg question 'Should I use gpt-4o-mini which AI proxy supports, or gpt3.5 turbo?' \
--arg image "$(curl -s 'https://tds.s-anand.net/images/project-tds-virtual-ta-q1.webp' | base64)" \
'{question: $question, image: $image}')" https://app.example.com/api
Note: If your API requires single-line base64, use:
curl -s "https://tds.s-anand.net/images/project-tds-virtual-ta-q1.webp" | base64 | tr -d '\n'
$imageBase64 = [Convert]::ToBase64String((Invoke-WebRequest -Uri "https://tds.s-anand.net/images/project-tds-virtual-ta-q1.webp" -UseBasicParsing).Content)
$body = @{
question = "Should I use gpt-4o-mini which AI proxy supports, or gpt3.5 turbo?"
image = $imageBase64
} | ConvertTo-Json -Compress
curl.exe -X POST -H "Content-Type: application/json" -d $body https://app.example.com/api