Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge gamification with knowledge gap
Browse files Browse the repository at this point in the history
  • Loading branch information
bwilczek committed Apr 12, 2024
1 parent b640338 commit c569929
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
8 changes: 0 additions & 8 deletions features/gamification.feature

This file was deleted.

20 changes: 15 additions & 5 deletions features/knowledge_gaps.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,27 @@
# check that quiz_questions last row has a thread_id

# Use white_check_mark emoji on TA message

# check that user in user_scores table appears and has filled luminary_score eq 1

Feature: Knowledge gaps

Scenario: TopAssist initiates conversations for unanswered questions
Given there are no answers for question "What power superman has?"
Given databases contain documents with associated embeddings:
| title | contents |
| Holiday Policy | Full time employees are eligible for 30 days of per year. |
| Hardware Policy | Company hardware cannot be used for personal purposes. |
When I submit phrase: "What power superman has?"
Then listener asks OpenAI for embeddings for the given phrase
And corresponding documents are not found in the database
And question "What power superman has?" is saved as unanswered
And I get rewarded 1 revealer point
When I run CLI command "main.py knowledge-gap superman"
Then listener asks OpenAI for embeddings for the given phrase
And corresponding unanswered questions are found in the database
And unanswered questions for given embeddings are found:
| question |
| What power superman has? |
And thread "What power superman has?" is created in #topassist-dev-knowledge-gap channel
When I reply in the thread with: "Flying"
And I react to that reply with :bookmark:
Then the conversation is being uploaded to dedicated confluence space
And I react to that reply with :white_check_mark:
Then conversation is being uploaded to dedicated confluence space
And I am awarded 1 luminary point
6 changes: 1 addition & 5 deletions features/slack_conversation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ Feature: Slack conversation
# 3. Feedback. User posts a message to a thread started from the original question -> same as Q&A but instead of creating new conversation it posts to an exiting one.

Scenario: User interacts with TopAssist in Slack
Given document database contains documents:
Given databases contain documents with associated embeddings:
| title | contents |
| Holiday Policy | Full time employees are eligible for 30 days of per year. |
| Hardware Policy | Company hardware cannot be used for personal purposes. |
And vector database contains entries:
| title | embeddings |
| Holiday Policy | 32 56 f2 3b d7 |
| Hardware Policy | 4e d6 b1 78 9a |
When I submit phrase: "Totally not a question"
Then listener does not react
When I submit phrase: "How many days off am I eligible for?"
Expand Down

0 comments on commit c569929

Please sign in to comment.