-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Conditional input interview transcript #62
base: feature/speaker_diarization
Are you sure you want to change the base?
Feature: Conditional input interview transcript #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested suggestions and changes inline.
@@ -0,0 +1,37 @@ | |||
CREATE TABLE IF NOT EXISTS "analysis_feedback" ( | |||
"id" text PRIMARY KEY NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why primary key id is of type text?
@@ -0,0 +1,37 @@ | |||
CREATE TABLE IF NOT EXISTS "analysis_feedback" ( | |||
"id" text PRIMARY KEY NOT NULL, | |||
"user_id" text NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why foreign key user_id is of type text?
"user_id" text NOT NULL, | ||
"analysis_id" uuid NOT NULL, | ||
"is_found_useful" boolean NOT NULL, | ||
"impact" text, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's column 'impact' here?
Is this field where we store feedback messages? If yes please name it accordingly.
"parsed_job_description" text, | ||
"analysis_result" text, | ||
"conversation" text, | ||
"status" text, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we convert 'status' to enum?
"analysis_result" text, | ||
"conversation" text, | ||
"status" text, | ||
"created_at" timestamp DEFAULT now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're missing 'updated_at' column.
<FormControl> | ||
<Input | ||
type="file" | ||
accept=".txt,.docx,.pdf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does our code support reading from all these file types?
|
||
def get_question_level_ratings(Asked_Questions): | ||
try: | ||
file_path = "/Users/sethupathiasokan/Documents/AiCruit/lingo.ai/Scorecard Template.xlsx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this hardcoded path there?
def get_question_level_ratings(Asked_Questions): | ||
try: | ||
file_path = "/Users/sethupathiasokan/Documents/AiCruit/lingo.ai/Scorecard Template.xlsx" | ||
sheet_name = "Java" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still under development?
# Perform transcription and speaker diarization | ||
transcription_result = transcription_with_speaker_diarization(request) | ||
transcript = transcription_result["transcript"] | ||
questions_answers = transcription_result["qna"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if-else ladder can be optimized.
For example, This line is repeated 3 times:
questions_answers = transcription_result["qna"]
This method is called three times:
extract_conversation_from_file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to rewrite the 'QNA_DIFFCULTY_LEVEL_RATING_FIND_PROMPT' prompt, as discussed.
Workdone is as follows -