A first very simple implementation that allows the addition of question-answer pairs:
click on the [Pencil] button for a RAG answer
it opens new tab/window or popup window
new window has 4 editable textarea fields
3.1 last question (from chat history)
3.2 last answer (from chat history)
3.3 last URL (from chat history)
3.4 Name/Shareholder/QA-Owner as empty field
user fills in everything or adapts existing texts and then clicks on the Save button.
save button sends everything to the database via API endpint “update_or_insert_data”.
unclear points:
For point 3.4, a column must be added to the SQL database.
update_or_insert_data uses URL for identification (in case of update), so only 1 question per URL would be possible, this must be addressed as an additional issue (identification idea: url&question-hash)
Security concerns such as CrossSiteScripting, maybe easy solution from react?
For testing the function, the appearance does not matter, but an existing user interface must be addressed for later
Description
extend expert database with new question-answers
A first very simple implementation that allows the addition of question-answer pairs:
unclear points: