Spaces:
Sleeping
Sleeping
IliaLarchenko
commited on
Commit
·
c756257
1
Parent(s):
36bee3f
Added analytics
Browse files- .gitignore +1 -0
- tests/candidate.py +3 -2
- tests/testing_prompts.py +8 -0
.gitignore
CHANGED
@@ -161,3 +161,4 @@ cython_debug/
|
|
161 |
|
162 |
.vscode/
|
163 |
records/
|
|
|
|
161 |
|
162 |
.vscode/
|
163 |
records/
|
164 |
+
analysis.ipynb
|
tests/candidate.py
CHANGED
@@ -10,11 +10,12 @@ from dotenv import load_dotenv
|
|
10 |
from openai import OpenAI
|
11 |
|
12 |
from api.llm import LLMManager
|
13 |
-
from config import
|
14 |
from resources.data import fixed_messages, topic_lists
|
15 |
from resources.prompts import prompts
|
16 |
from tests.testing_prompts import candidate_prompt
|
17 |
|
|
|
18 |
load_dotenv()
|
19 |
|
20 |
|
@@ -22,7 +23,7 @@ def complete_interview(interview_type, exp_name, requirements="", difficulty="",
|
|
22 |
client = OpenAI(base_url="https://api.openai.com/v1")
|
23 |
llm = LLMManager(config, prompts)
|
24 |
llm_name = config.llm.name
|
25 |
-
|
26 |
# Select a random topic or difficulty if not provided
|
27 |
topic = topic or random.choice(topic_lists[interview_type])
|
28 |
difficulty = difficulty or random.choice(["easy", "medium", "hard"])
|
|
|
10 |
from openai import OpenAI
|
11 |
|
12 |
from api.llm import LLMManager
|
13 |
+
from utils.config import Config
|
14 |
from resources.data import fixed_messages, topic_lists
|
15 |
from resources.prompts import prompts
|
16 |
from tests.testing_prompts import candidate_prompt
|
17 |
|
18 |
+
config = Config()
|
19 |
load_dotenv()
|
20 |
|
21 |
|
|
|
23 |
client = OpenAI(base_url="https://api.openai.com/v1")
|
24 |
llm = LLMManager(config, prompts)
|
25 |
llm_name = config.llm.name
|
26 |
+
print(f"Starting evaluation interviewer LLM: {llm_name}, candidate_LLM: {model} interview_type: {interview_type}")
|
27 |
# Select a random topic or difficulty if not provided
|
28 |
topic = topic or random.choice(topic_lists[interview_type])
|
29 |
difficulty = difficulty or random.choice(["easy", "medium", "hard"])
|
tests/testing_prompts.py
CHANGED
@@ -54,3 +54,11 @@ You should evaluate the following aspects and return a JSON with these keys:
|
|
54 |
|
55 |
Return just True, False, or None (if no info was provided) for each key except "comments", "comments" is string.
|
56 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
Return just True, False, or None (if no info was provided) for each key except "comments", "comments" is string.
|
56 |
"""
|
57 |
+
|
58 |
+
|
59 |
+
feedback_analyzer = f"""You are analyzing the feedback from a series of interviews.
|
60 |
+
You goal is to improve the quality of the interviews, and structure the main problems and mistakes interviewers are making.
|
61 |
+
Below are some comments based on the feedback from the interviews.
|
62 |
+
Summarize them, find the main patterns, repeated mistakes and ares for improvement.
|
63 |
+
Return TOP-5 problems/improvements/action steps.
|
64 |
+
"""
|