calpoly-csai / api

Official API for the NIMBUS Voice Assistant accessible via HTTP REST protocol.
https://nimbus.api.calpolycsai.com/
GNU General Public License v3.0
9 stars 4 forks source link

When users ask a question, we store that question for reference #141

Closed Waidhoferj closed 4 years ago

Waidhoferj commented 4 years ago

What's New?

With the rollout of the Nimbus Chatbot, we're gonna want to collect all of that sweet, sweet question data so that we can improve our model. I added a database call to the /ask endpoint that stores the question asked along with a timestamp.

Type of change (pick-one)

How Has This Been Tested?

I tested the endpoint using postman and ensured that errors storing the question will be caught so Nimbus can answer the question uninterrupted

Checklist (check-all-before-merge)

chidiewenike commented 4 years ago

@Waidhoferj What is the format of the data?

Waidhoferj commented 4 years ago

The input of the insert_entity() function takes a dictionary in the form { "question": str }. The table that stores the data is called QuestionLog and has three columns: an integer id, a timestamp (UTC), and question which is the text of the question.

mfekadu commented 4 years ago

just 2 conflicts @Waidhoferj

image image
Waidhoferj commented 4 years ago

Rebase was an absolute nightmare... @chidiewenike plz approve so I don't have to go through that again in another couple weeks.

snekiam commented 4 years ago

That might've been my fault...sorry about that!

render[bot] commented 4 years ago

Your Render PR Server URL is https://nimbus-pr-141.onrender.com.

Follow its progress at https://dashboard.render.com/web/srv-bra24v18vr2d92lo7mcg.

render[bot] commented 4 years ago

Your Render PR Server at https://nimbus-pr-141.onrender.com is now live!

View it on your dashboard at https://dashboard.render.com/web/srv-bra24v18vr2d92lo7mcg.

sonarcloud[bot] commented 4 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

render[bot] commented 4 years ago

Your Render PR Server at https://nimbus-pr-141.onrender.com is now live!

View it on your dashboard at https://dashboard.render.com/web/srv-bra24v18vr2d92lo7mcg.

snekiam commented 4 years ago

I think this was taken care of in a separate PR (#170?) Are we good to close this PR @Waidhoferj ?

snekiam commented 4 years ago

Merged in #170, closing.