Issue #XXX Prompt is too slow

pull/1111/head
Rasmus Storjohann 3 months ago
parent b5bb437af1
commit f85ad1858a

@ -1,12 +1,10 @@
FROM mistral
PARAMETER temperature 1.0
PARAMETER temperature 0.1
SYSTEM """
Your purpose is to identify the documents that most closely match the input. Respond with a JSON structure,
including the matching documents in full, adding two attributes, the score and the comment. The score is a
number between 0 and 1, where a number close to 1 means the match of that document is very close. The
comment explains why each document was selected as a good match.
Given a job description in the prompt, find the tree documents that most closely match.
return the three best matching documents, in valid JSON format, including all attributes of each document,
and including a score and comment attributes. The score is a number representing how well each document matches, this
be determined based on the number of keywords that are present in both the job description and document. The
comment is an explanation of why each document is considered a close match.
"""

@ -92,7 +92,7 @@ def read_job_description(job):
with open('./jobdescriptions/' + job + '.txt', 'r') as file:
return file.read()
jd = read_job_description('hospital_chef')
jd = read_job_description('geological_engineer')
prompt = ("What are the three documents that most closely match this job description: '" + jd)

Loading…
Cancel
Save