MCPcopy Create free account

hub / github.com/interviewstreet/hiring-agent / functions

Functions88 in github.com/interviewstreet/hiring-agent

↓ 10 callersMethodrender_template
Render a template for a specific section. Args: section_name (str): Name of the section (basics, work, education, etc.)
prompts/template_manager.py:69
↓ 6 callersMethod_call_llm_for_section
( self, section_name: str, text_content: str, prompt: str, return_model=None )
pdf.py:66
↓ 5 callersFunctionfetch_profile
Helper function to extract profile information for a given network.
transform.py:486
↓ 4 callersMethodchat
Send a chat request to the LLM provider.
models.py:17
↓ 4 callersFunctionintersects_rects
Check if middle of rect is contained in a rect of the list.
pymupdf_rag.py:893
↓ 4 callersFunctionsave_image
Optionally render the rect part of a page. We will ignore images that are empty or that have an edge smaller than x% of the correspon
pymupdf_rag.py:565
↓ 3 callersFunction_fetch_github_api
(api_url, params=None)
github.py:29
↓ 3 callersFunctionextract_json_from_response
Extract JSON content from markdown code blocks. Args: response_text: Text that may contain JSON wrapped in markdown code blocks
llm_utils.py:13
↓ 3 callersFunctioninitialize_llm_provider
Initialize the appropriate LLM provider based on the model name. Args: model_name: The name of the model to use Returns:
llm_utils.py:40
↓ 3 callersFunctionresolve_links
Accept a span and return a markdown link string. Args: links: a list as returned by page.get_links() span: a span dic
pymupdf_rag.py:432
↓ 3 callersFunctionwrite_text
Output the text found inside the given clip. This is an alternative for plain text in that it outputs text enriched with markdown sty
pymupdf_rag.py:597
↓ 2 callersMethod_extract_all_sections_separately
( self, text_content: str )
pdf.py:266
↓ 2 callersMethod_extract_section_data
( self, text_content: str, section_name: str, return_model=None )
pdf.py:219
↓ 2 callersFunction_match_parts_to_links
Match parts of text to specific links based on content and position.
pymupdf_rag.py:502
↓ 2 callersFunctionextract_github_username
(github_url: str)
github.py:116
↓ 2 callersFunctionfetch_and_display_github_info
(github_url: str)
github.py:459
↓ 2 callersFunctionis_valid_resume_data
Check if the resume data has at least some extracted core content.
score.py:191
↓ 2 callersFunctionoutput_images
Output images and graphics above text rectangle.
pymupdf_rag.py:952
↓ 2 callersFunctionoutput_tables
Output tables above given text rectangle.
pymupdf_rag.py:903
↓ 2 callersFunctionparse_date_range
Parse date range and return both start and end dates. For format like "Jan-Mar 2021", returns ("Jan 2021", "Mar 2021")
transform.py:412
↓ 2 callersFunctiontransform_achievements
(achievements_list: List)
transform.py:277
↓ 2 callersFunctiontransform_basics
(basics_data: Dict)
transform.py:125
↓ 2 callersFunctiontransform_education
(edu_list: List)
transform.py:242
↓ 2 callersFunctiontransform_projects_comprehensive
(parsed_data: Dict)
transform.py:378
↓ 2 callersFunctiontransform_skills_comprehensive
(parsed_data: Dict)
transform.py:348
↓ 2 callersFunctiontransform_work_experience
(work_list: List)
transform.py:175
↓ 1 callersFunction_create_cache_filename
(api_url: str, params: dict = None)
github.py:18
↓ 1 callersFunction_evaluate_resume
Evaluate the resume using AI and display results.
score.py:162
↓ 1 callersMethod_initialize_llm_provider
Initialize the appropriate LLM provider based on the model.
pdf.py:43
↓ 1 callersMethod_initialize_llm_provider
Initialize the appropriate LLM provider based on the model.
evaluator.py:36
↓ 1 callersMethod_load_evaluation_prompt
(self, resume_text: str)
evaluator.py:40
↓ 1 callersMethod_load_templates
Load all available templates.
prompts/template_manager.py:35
↓ 1 callersFunction_match_words_to_links
Match individual words to links based on position and content.
pymupdf_rag.py:553
↓ 1 callersFunction_resolve_multiple_links
Resolve multiple links within a single span text. Args: span_text: The text content of the span links: List of overla
pymupdf_rag.py:469
↓ 1 callersFunctionconvert_blog_data_to_text
(blog_data: dict)
transform.py:924
↓ 1 callersFunctionconvert_github_data_to_text
(github_data: dict)
transform.py:892
↓ 1 callersFunctionconvert_json_resume_to_text
(resume_data: JSONResume)
transform.py:744
↓ 1 callersMethodevaluate_resume
(self, resume_text: str)
evaluator.py:48
↓ 1 callersFunctionextract_domain_from_url
(url: str)
transform.py:98
↓ 1 callersMethodextract_json_from_pdf
(self, pdf_path: str)
pdf.py:199
↓ 1 callersMethodextract_text_from_pdf
(self, pdf_path: str)
pdf.py:47
↓ 1 callersFunctionextract_username_from_url
(url: str, domain: str)
transform.py:154
↓ 1 callersFunctionfetch_all_github_repos
(github_url: str, max_repos: int = 100)
github.py:218
↓ 1 callersFunctionfetch_contributions_count
(owner: str, contributors_data)
github.py:187
↓ 1 callersFunctionfetch_github_profile
(github_url: str)
github.py:141
↓ 1 callersFunctionfetch_repo_contributors
(owner: str, repo_name: str)
github.py:202
↓ 1 callersFunctionfind_profile
(profiles, network)
score.py:205
↓ 1 callersFunctiongenerate_profile_json
(profile: GitHubProfile)
github.py:310
↓ 1 callersFunctiongenerate_projects_json
(projects: List[Dict])
github.py:334
↓ 1 callersMethodget_available_sections
Get list of available section names. Returns: list: List of available section names
prompts/template_manager.py:60
↓ 1 callersFunctionget_bg_color
Determine the background color of the page. The function returns a PDF RGB color triple or None. We check the color of 10 x 10 pixel
pymupdf_rag.py:1013
↓ 1 callersFunctionget_metadata
(doc, pno)
pymupdf_rag.py:1053
↓ 1 callersFunctionget_network_name
(domain: str)
transform.py:110
↓ 1 callersFunctionget_page_output
Process one page. Args: doc: pymupdf.Document pno: 0-based page number textflags: text extraction flag bi
pymupdf_rag.py:1086
↓ 1 callersFunctionis_in_rects
Check if rect is contained in a rect of the list.
pymupdf_rag.py:886
↓ 1 callersFunctionis_significant
Check whether the rectangle "box" contains 'signifiant' drawings. This means that some path is contained in the "interior" of box. To this en
pymupdf_rag.py:256
↓ 1 callersFunctionmain
(github_url)
github.py:484
↓ 1 callersFunctionmain
(pdf_path)
score.py:214
↓ 1 callersFunctionmax_header_id
(spans, page)
pymupdf_rag.py:424
↓ 1 callersFunctionpage_is_ocr
Check if page exclusivley contains OCR text. For this to be true, all text must be written as "ignore-text".
pymupdf_rag.py:1000
↓ 1 callersFunctionprint_evaluation_results
Print evaluation results in a readable format.
score.py:29
↓ 1 callersFunctionrefine_boxes
Join any rectangles with a pairwise non-empty overlap. Accepts and returns a list of Rect items. Note that rectangles that only "touch" each
pymupdf_rag.py:221
↓ 1 callersFunctionsort_words
Reorder words in lines. The argument list must be presorted by bottom, then left coordinates. Words with similar top / bottom coordi
pymupdf_rag.py:1060
↓ 1 callersFunctionto_markdown
Process the document and return the text of the selected pages. Args: doc: pymupdf.Document or string. pages: list of page number
pymupdf_rag.py:302
↓ 1 callersFunctiontransform_evaluation_response
Transform the three inputs (resume_data, github_data, evaluation) into the most important columns as a CSV row. Args: resume_data: J
transform.py:497
↓ 1 callersFunctiontransform_organizations
(org_list: List)
transform.py:224
↓ 1 callersFunctiontransform_parsed_data
(parsed_data: Dict)
transform.py:6
↓ 1 callersFunctiontransform_projects
(projects_list: List)
transform.py:313
↓ 1 callersFunctiontransform_skills
(skills_list: List)
transform.py:296
Method__init__
(self)
pdf.py:39
Method__init__
(self, model_name: str = DEFAULT_MODEL, model_params: dict = None)
evaluator.py:25
Method__init__
(self)
models.py:274
Method__init__
(self, api_key: str)
models.py:316
Method__init__
Read all text and make a dictionary of fontsizes. Args: doc: PDF document or filename pages: consider these page numb
pymupdf_rag.py:84
Method__init__
Read and store the TOC of the document.
pymupdf_rag.py:179
Method__init__
Initialize the template manager. Args: template_dir (str): Directory containing Jinja templates
prompts/template_manager.py:21
Method_extract_single_section
( self, text_content: str, section_name: str, return_model=None )
pdf.py:238
Methodchat
Send a chat request to Ollama.
models.py:279
Methodchat
Send a chat request to Google Gemini API.
models.py:322
Methodextract_awards_section
(self, resume_text: str)
pdf.py:183
Methodextract_basics_section
(self, resume_text: str)
pdf.py:136
Methodextract_education_section
(self, resume_text: str)
pdf.py:152
Methodextract_json_from_text
(self, resume_text: str)
pdf.py:192
Methodextract_projects_section
(self, resume_text: str)
pdf.py:172
Methodextract_skills_section
(self, resume_text: str)
pdf.py:163
Methodextract_work_section
(self, resume_text: str)
pdf.py:145
Methodget_header_id
Return appropriate markdown header prefix. Given a text span from a "dict"/"rawdict" extraction, determine the markdown header prefix
pymupdf_rag.py:153
Methodget_header_id
Return appropriate markdown header prefix. Given a text span from a "dict"/"rawdict" extraction, determine the markdown header prefix
pymupdf_rag.py:191