This publication was originally written in Portuguese. You're viewing an automated translation into English.
AssistenteETE is an AI-powered chatbot designed to assist students and faculty in accessing information about courses, schedules, and faculty at the Technical School. It uses Python , Flask , and LLM/Gen-AI techniques to provide accurate and contextual responses.
The ETE Assistant receives questions from users, processes the input using an NLP model, and returns relevant answers based on the technical school's information database.
The project's source code is available on GitHub:
https://github.com/jwellcastro/assistenteete.git
#Code snippet:
from flask import Flask, request, jsonify
import pandas as pd
app = Flask( name )
df = pd.read_excel('assistant_questions_ete.xlsx')
@app.route('/question', methods=['POST'])
def answer_question():
data = request.get_json()
user_question = data.get('question')
answer = search_answer(user_question)
return jsonify({'response': response})
def fetch_answer(question):
# Logic to find the answer based on the user's question
for index, row in df.iterrows():
if row['Question'].lower() in question.lower():
return row['Answer']
return 'Sorry, I didn't understand your question.'
if name == ' main ':
app.run(debug=True)