onepointconsulting / hr_job_cv_matcher

HR Bot that ranks CVs using matching between with job descriptions and the CVs
15 stars 5 forks source link

There seems to be some issue with chainlit/message.py #3

Open nitish2507 opened 10 months ago

nitish2507 commented 10 months ago

2024-01-18 16:06:42 - Template count: 2 2024-01-18 16:06:42 - 'str' object has no attribute 'todict' Traceback (most recent call last): File "/Users/nitish/Library/Caches/pypoetry/virtualenvs/hr-job-cv-matcher-JiiZFaw-py3.11/lib/python3.11/site-packages/chainlit/utils.py", line 40, in wrapper return await user_function(**params_values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 64, in init await start_process_applications_and_cvs(application_docs, cv_docs) File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 451, in start_process_applications_and_cvs await process_with_settings(settings) File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 89, in process_with_settings ] = await process_applications_and_cvs(application_docs, cvs_docs, score_weights) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 140, in process_applications_and_cvs ] = await process_job_description_and_candidates( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 192, in process_job_description_andcandidates , skill_results = await process_skills_llm_chain( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 305, in process_skills_llm_chain return await process_generic_extraction( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 288, in process_generic_extraction await results_msg.streamtoken( File "/Users/nitish/Library/Caches/pypoetry/virtualenvs/hr-job-cv-matcher-JiiZFaw-py3.11/lib/python3.11/site-packages/chainlit/message.py", line 109, in stream_token msg_dict = self.todict() ^^^^^^^^^^^^^^ File "/Users/nitish/Library/Caches/pypoetry/virtualenvs/hr-job-cv-matcher-JiiZFaw-py3.11/lib/python3.11/site-packages/chainlit/message.py", line 202, in to_dict _dict["prompt"] = self.prompt.to_dict() ^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'to_dict'

kneuskens commented 7 months ago

I also have this issue. is there a solution for that?