Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/interviewstreet/hiring-agent
/ functions
Functions
88 in github.com/interviewstreet/hiring-agent
⨍
Functions
88
◇
Types & classes
37
↓ 10 callers
Method
render_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 callers
Method
_call_llm_for_section
( self, section_name: str, text_content: str, prompt: str, return_model=None )
pdf.py:66
↓ 5 callers
Function
fetch_profile
Helper function to extract profile information for a given network.
transform.py:486
↓ 4 callers
Method
chat
Send a chat request to the LLM provider.
models.py:17
↓ 4 callers
Function
intersects_rects
Check if middle of rect is contained in a rect of the list.
pymupdf_rag.py:893
↓ 4 callers
Function
save_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 callers
Function
_fetch_github_api
(api_url, params=None)
github.py:29
↓ 3 callers
Function
extract_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 callers
Function
initialize_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 callers
Function
resolve_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 callers
Function
write_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 callers
Method
_extract_all_sections_separately
( self, text_content: str )
pdf.py:266
↓ 2 callers
Method
_extract_section_data
( self, text_content: str, section_name: str, return_model=None )
pdf.py:219
↓ 2 callers
Function
_match_parts_to_links
Match parts of text to specific links based on content and position.
pymupdf_rag.py:502
↓ 2 callers
Function
extract_github_username
(github_url: str)
github.py:116
↓ 2 callers
Function
fetch_and_display_github_info
(github_url: str)
github.py:459
↓ 2 callers
Function
is_valid_resume_data
Check if the resume data has at least some extracted core content.
score.py:191
↓ 2 callers
Function
output_images
Output images and graphics above text rectangle.
pymupdf_rag.py:952
↓ 2 callers
Function
output_tables
Output tables above given text rectangle.
pymupdf_rag.py:903
↓ 2 callers
Function
parse_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 callers
Function
transform_achievements
(achievements_list: List)
transform.py:277
↓ 2 callers
Function
transform_basics
(basics_data: Dict)
transform.py:125
↓ 2 callers
Function
transform_education
(edu_list: List)
transform.py:242
↓ 2 callers
Function
transform_projects_comprehensive
(parsed_data: Dict)
transform.py:378
↓ 2 callers
Function
transform_skills_comprehensive
(parsed_data: Dict)
transform.py:348
↓ 2 callers
Function
transform_work_experience
(work_list: List)
transform.py:175
↓ 1 callers
Function
_create_cache_filename
(api_url: str, params: dict = None)
github.py:18
↓ 1 callers
Function
_evaluate_resume
Evaluate the resume using AI and display results.
score.py:162
↓ 1 callers
Method
_initialize_llm_provider
Initialize the appropriate LLM provider based on the model.
pdf.py:43
↓ 1 callers
Method
_initialize_llm_provider
Initialize the appropriate LLM provider based on the model.
evaluator.py:36
↓ 1 callers
Method
_load_evaluation_prompt
(self, resume_text: str)
evaluator.py:40
↓ 1 callers
Method
_load_templates
Load all available templates.
prompts/template_manager.py:35
↓ 1 callers
Function
_match_words_to_links
Match individual words to links based on position and content.
pymupdf_rag.py:553
↓ 1 callers
Function
_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 callers
Function
convert_blog_data_to_text
(blog_data: dict)
transform.py:924
↓ 1 callers
Function
convert_github_data_to_text
(github_data: dict)
transform.py:892
↓ 1 callers
Function
convert_json_resume_to_text
(resume_data: JSONResume)
transform.py:744
↓ 1 callers
Method
evaluate_resume
(self, resume_text: str)
evaluator.py:48
↓ 1 callers
Function
extract_domain_from_url
(url: str)
transform.py:98
↓ 1 callers
Method
extract_json_from_pdf
(self, pdf_path: str)
pdf.py:199
↓ 1 callers
Method
extract_text_from_pdf
(self, pdf_path: str)
pdf.py:47
↓ 1 callers
Function
extract_username_from_url
(url: str, domain: str)
transform.py:154
↓ 1 callers
Function
fetch_all_github_repos
(github_url: str, max_repos: int = 100)
github.py:218
↓ 1 callers
Function
fetch_contributions_count
(owner: str, contributors_data)
github.py:187
↓ 1 callers
Function
fetch_github_profile
(github_url: str)
github.py:141
↓ 1 callers
Function
fetch_repo_contributors
(owner: str, repo_name: str)
github.py:202
↓ 1 callers
Function
find_profile
(profiles, network)
score.py:205
↓ 1 callers
Function
generate_profile_json
(profile: GitHubProfile)
github.py:310
↓ 1 callers
Function
generate_projects_json
(projects: List[Dict])
github.py:334
↓ 1 callers
Method
get_available_sections
Get list of available section names. Returns: list: List of available section names
prompts/template_manager.py:60
↓ 1 callers
Function
get_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 callers
Function
get_metadata
(doc, pno)
pymupdf_rag.py:1053
↓ 1 callers
Function
get_network_name
(domain: str)
transform.py:110
↓ 1 callers
Function
get_page_output
Process one page. Args: doc: pymupdf.Document pno: 0-based page number textflags: text extraction flag bi
pymupdf_rag.py:1086
↓ 1 callers
Function
is_in_rects
Check if rect is contained in a rect of the list.
pymupdf_rag.py:886
↓ 1 callers
Function
is_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 callers
Function
main
(github_url)
github.py:484
↓ 1 callers
Function
main
(pdf_path)
score.py:214
↓ 1 callers
Function
max_header_id
(spans, page)
pymupdf_rag.py:424
↓ 1 callers
Function
page_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 callers
Function
print_evaluation_results
Print evaluation results in a readable format.
score.py:29
↓ 1 callers
Function
refine_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 callers
Function
sort_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 callers
Function
to_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 callers
Function
transform_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 callers
Function
transform_organizations
(org_list: List)
transform.py:224
↓ 1 callers
Function
transform_parsed_data
(parsed_data: Dict)
transform.py:6
↓ 1 callers
Function
transform_projects
(projects_list: List)
transform.py:313
↓ 1 callers
Function
transform_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
Method
chat
Send a chat request to Ollama.
models.py:279
Method
chat
Send a chat request to Google Gemini API.
models.py:322
Method
extract_awards_section
(self, resume_text: str)
pdf.py:183
Method
extract_basics_section
(self, resume_text: str)
pdf.py:136
Method
extract_education_section
(self, resume_text: str)
pdf.py:152
Method
extract_json_from_text
(self, resume_text: str)
pdf.py:192
Method
extract_projects_section
(self, resume_text: str)
pdf.py:172
Method
extract_skills_section
(self, resume_text: str)
pdf.py:163
Method
extract_work_section
(self, resume_text: str)
pdf.py:145
Method
get_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
Method
get_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