MCPcopy Create free account

hub / github.com/Sumanth077/Hands-On-AI-Engineering / functions

Functions631 in github.com/Sumanth077/Hands-On-AI-Engineering

↓ 1 callersFunction_render_verdict
Format the judge's verdict as markdown.
ai_agents/ai_debate_agent/app.py:40
↓ 1 callersFunction_report_filename
Derive a sanitized .md filename from the company name in the prompt.
ai_agents/startup_analyst/app.py:59
↓ 1 callersFunction_sanitize_sid
Strip any path separators or dots to prevent directory traversal.
ai_agents/agentic-form-filler/app.py:31
↓ 1 callersFunction_score_node
(node_name: str, terms: list[str])
rag_apps/hybrid_rag_system/src/graph_retriever.py:25
↓ 1 callersFunction_split_into_chunks
Split text into overlapping sentence chunks.
rag_apps/rock_music_rag/rag.py:64
↓ 1 callersFunction_stub_module
(name: str, **attrs)
ai_agents/multi_agent_research_assistant_ag2/tests/conftest.py:11
↓ 1 callersFunction_summarize_stock_data
Builds a compact text summary of real OHLCV price data to ground the analysis prompt.
ai_agents/finagent/financial_agents.py:41
↓ 1 callersFunction_system_message
Build the system prompt string with the clinical extraction instructions and JSON schema.
multimodal/medical_document_parser/llm_extractor.py:42
↓ 1 callersFunction_to_langchain_messages
Convert a list of role/content dicts from session history into LangChain message objects.
ai_agents/langchain_data_agent/agent.py:253
↓ 1 callersFunction_type_badge
(entity_type: str)
rag_apps/graphrag_knowledge_system/app.py:326
↓ 1 callersFunction_validate_read_only
Raise ValueError if the query contains any non-SELECT or mutating SQL statement.
ai_agents/langchain_data_agent/agent.py:62
↓ 1 callersFunction_vision_page
Render a PDF page to a PNG image at RENDER_DPI and return it as a vision ProcessedPage.
multimodal/medical_document_parser/document_processor.py:36
↓ 1 callersFunction_write_report_file
Write the report markdown to a temp file and return its path.
ai_agents/startup_analyst/app.py:69
↓ 1 callersFunction_youtube_embed
(url: str)
audio/music_explorer/app.py:50
↓ 1 callersMethodadd_audio
Upload audio to Gemini File API, transcribe it, index the transcript.
multimodal/multimodal_rag/rag.py:235
↓ 1 callersMethodadd_chunk
(self, chunk_id: str, text: str, metadata: Dict)
rag_apps/graphrag_knowledge_system/src/vector_store.py:45
↓ 1 callersFunctionadd_documents
Embed and insert a list of text chunks into the given collection. Returns the number of documents successfully added.
rag_apps/rag_agent_with_database_routing/rag_agent/databases.py:36
↓ 1 callersMethodadd_image
Upload image to Gemini File API, describe it, index the description.
multimodal/multimodal_rag/rag.py:217
↓ 1 callersMethodadd_pdf
Load a PDF with LangChain's PyPDFLoader and index up to MAX_PDF_PAGES pages.
multimodal/multimodal_rag/rag.py:204
↓ 1 callersMethodadd_text
Index raw text input.
multimodal/multimodal_rag/rag.py:175
↓ 1 callersFunctionadd_to_cache
(content_hash: str, filename: str, num_chunks: int, num_entities: int)
rag_apps/hybrid_rag_system/src/document_processor.py:82
↓ 1 callersFunctionadd_to_memory
Save a user/assistant message pair to Mem0 and record the outcome in session state.
ai_agents/ai_customer_support_agent/app.py:70
↓ 1 callersMethodadd_url
Fetch a web page, strip HTML boilerplate, and index the content.
multimodal/multimodal_rag/rag.py:185
↓ 1 callersMethodadd_video
Upload video to Gemini File API, describe it, index the description.
multimodal/multimodal_rag/rag.py:253
↓ 1 callersFunctionanalyze_video
(youtube_url: str)
multimodal/video_understanding_agent/app.py:87
↓ 1 callersFunctionanswer_question
( url: str, question: str, history: list[dict[str, str]], doc_content: str, )
ai_agents/documentation_qna_agent/agent_service.py:190
↓ 1 callersFunctionapply_custom_css
()
rag_apps/agentic_rag_with_o3_mini_and_duckduckgo/app.py:26
↓ 1 callersFunctionask_finance_agent
Run the finance agent on a question and return its plain-text reply.
ai_agents/personal_finance_agent/agent.py:499
↓ 1 callersFunctionbuild_agent
Build and return a GitHub Intelligence Agent. Args: github_pat: GitHub Personal Access Token (read-only permissions are enough) g
ai_agents/github_intelligence_agent/agent.py:42
↓ 1 callersFunctionbuild_agent
()
ai_agents/documentation_qna_agent/agent_service.py:135
↓ 1 callersFunctionbuild_agent_graph
Build and return the LangChain tool-calling agent graph with the finance tools.
ai_agents/personal_finance_agent/agent.py:476
↓ 1 callersFunctionbuild_app
Construct and return the Gradio Blocks interface for the audio translator.
audio/multilingual_audio_translator/app.py:54
↓ 1 callersFunctionbuild_app
Construct and return the Gradio Blocks interface for the medical document parser.
multimodal/medical_document_parser/app.py:68
↓ 1 callersFunctionbuild_context_block
Format retrieved chunks as a markdown context block with clickable timestamp links.
rag_apps/youtube_transcript_rag/app.py:190
↓ 1 callersFunctionbuild_databases
Create empty in-memory Qdrant collections.
rag_apps/rag_agent_with_database_routing/rag_agent/databases.py:22
↓ 1 callersFunctionbuild_demo
Construct and return the Gradio ChatInterface for the browser automation agent.
ai_agents/browser_automation_agent/app.py:65
↓ 1 callersFunctionbuild_demo
Construct and return the Gradio Blocks interface with the two-panel reasoning UI.
rag_apps/reasoning_rag/app.py:124
↓ 1 callersFunctionbuild_doc_graph
( chunks: list[str], client: Mistral, progress_cb: Optional[Callable[[int, int], None]] = None, )
rag_apps/hybrid_rag_system/src/graph_indexer.py:67
↓ 1 callersFunctionbuild_graph
Construct and compile the debate graph.
ai_agents/ai_debate_agent/debate.py:263
↓ 1 callersFunctionbuild_instructions
(timezone: str = "UTC")
ai_agents/cal_scheduling_agent/app.py:36
↓ 1 callersFunctionbuild_instructions
()
ai_agents/research_team/team.py:38
↓ 1 callersFunctionbuild_katex_html
Build a self-contained HTML page that: • Renders every formula with KaTeX (display mode) • Shows the raw LaTeX source in a styled cod
OCR/latex_formula_ocr/app.py:179
↓ 1 callersFunctionbuild_prompt
Assemble the full reasoning-agent prompt.
rag_apps/reasoning_rag/agents.py:138
↓ 1 callersFunctionbuild_semantic_field_map
For each widget in the PDF, extract surrounding text to give a semantic label. Returns {widget_field_name: descriptive_text_context}.
ai_agents/agentic-form-filler/pdf_filler.py:75
↓ 1 callersFunctionbuild_sources_block
Format retrieved chunks into a numbered SOURCES block for the prompt.
rag_apps/reasoning_rag/agents.py:129
↓ 1 callersFunctionbuild_system_prompt
Build the CartMate system prompt with user context and relevant memories injected.
ai_agents/ai_customer_support_agent/app.py:103
↓ 1 callersFunctionbuild_ui
Build and return the Gradio Blocks interface for the debate app.
ai_agents/ai_debate_agent/app.py:121
↓ 1 callersFunctioncall_weather_tool
(city: str)
multimodal/multimodal_weather_app/app.py:153
↓ 1 callersFunctioncategorize_transaction
Return the spending category for a transaction based on keyword matching.
ai_agents/personal_finance_agent/agent.py:99
↓ 1 callersFunctionchat_and_update_fields_stream
The 'Cinematic' Streaming Engine. Detects closed JSON pairs mid-stream to trigger UI updates.
ai_agents/agentic-form-filler/llm.py:73
↓ 1 callersFunctioncheck_ollama
()
rag_apps/hybrid_rag_system/src/vector_indexer.py:23
↓ 1 callersFunctioncheck_ollama_status
Probes the Ollama API to check whether it is reachable and returns a status message.
OCR/glm_ocr_pro/ocr_local.py:15
↓ 1 callersFunctioncheck_ollama_status
Returns (ollama_reachable, glm_ocr_installed). Quick, non-blocking probe used in the sidebar.
OCR/latex_formula_ocr/app.py:109
↓ 1 callersFunctioncheck_ollama_status
()
multimodal/glm_ocr_pro/ocr_local.py:15
↓ 1 callersMethodchunk_count
(self)
multimodal/multimodal_rag/rag.py:338
↓ 1 callersFunctionchunk_segments
Flatten whisper segments into overlapping ~500-word chunks with timestamps.
rag_apps/youtube_transcript_rag/app.py:127
↓ 1 callersFunctionchunk_text
(text: str)
rag_apps/hybrid_rag_system/src/document_processor.py:32
↓ 1 callersFunctionchunk_text
Split text into overlapping word windows.
rag_apps/reasoning_rag/rag.py:120
↓ 1 callersFunctionclean_log
Remove blank lines and decorative separator lines from captured CrewAI stdout.
ai_agents/competitive_intelligence_agent/main.py:20
↓ 1 callersFunctionclose
(self)
rag_apps/graphrag_knowledge_system/src/graph_store.py:299
↓ 1 callersFunctioncollection_exists
Return True if a ChromaDB collection with the given name already exists.
rag_apps/youtube_transcript_rag/app.py:95
↓ 1 callersFunctioncompute_hash
(content: str)
rag_apps/hybrid_rag_system/src/document_processor.py:45
↓ 1 callersFunctioncreate_agents_and_tasks
(symbol: str)
ai_agents/multi_agent_financial_analyst/financial_analyst.py:51
↓ 1 callersFunctioncreate_field_mapping
One LLM call that maps the registry's logical key names to the PDF's exact internal widget field names. Returns {logical_name: pdf_internal_
ai_agents/agentic-form-filler/pdf_filler.py:107
↓ 1 callersFunctioncreate_http_client
Fresh client per request; avoids reusing a connection NVIDIA already closed.
ai_agents/job_posting_agent/nvidia_client.py:57
↓ 1 callersFunctioncreate_llm
Create and return a ChatMistralAI instance configured with the given API key.
ai_agents/multi_agent_coding_assistant/agents.py:75
↓ 1 callersFunctioncreate_travel_agent
Build and return the LangChain tool-calling agent graph.
ai_agents/travel_planner_agent/agent.py:274
↓ 1 callersFunctiondelete_expense
(expense_id: int)
OCR/receipt_expense_tracker/receipt_expense_tracker/database.py:88
↓ 1 callersFunctiondisplay_pdf_preview
(pdf_path)
rag_apps/agentic_rag_with_o3_mini_and_duckduckgo/app.py:146
↓ 1 callersFunctiondisplay_pdf_preview
(pdf_path)
rag_apps/agentic_rag_with_qwen_and_firecrawl/app.py:211
↓ 1 callersFunctiondownload_audio
Download the best-quality audio from a YouTube URL and return the path to the MP3 file.
rag_apps/youtube_transcript_rag/app.py:104
↓ 1 callersMethodembed
(self, texts: list[str])
rag_apps/agentic_rag_with_qwen_and_firecrawl/app.py:38
↓ 1 callersMethodembed_batch
Embed a list of texts, one by one.
rag_apps/hyde_rag/embedder.py:33
↓ 1 callersMethodembed_documents
Embed each document individually — Gemini Embedding 2 does not support true batching.
multimodal/multimodal_rag/rag.py:79
↓ 1 callersMethodembed_query
(self, text: str)
multimodal/multimodal_rag/rag.py:83
↓ 1 callersMethodembed_query
Embed a single query string (query time).
rag_apps/rag_agent_with_database_routing/rag_agent/embeddings.py:33
↓ 1 callersMethodescalate
Produce a structured escalation message. The LLM writes only a brief empathetic acknowledgment of the specific situation (2-
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:185
↓ 1 callersFunctionexisting_ticket_ids
Return the set of ticket_id values already stored in VectorAI DB.
ai_agents/customer_query_routing_agent/scripts/ingest_tickets.py:48
↓ 1 callersFunctionextract
(self, text: str, chunk_id: str)
rag_apps/graphrag_knowledge_system/src/entity_extractor.py:46
↓ 1 callersFunctionextract_agent_reply
Return the latest AI message content from an agent invoke result.
ai_agents/travel_planner_agent/agent.py:301
↓ 1 callersFunctionextract_answer
Return the last plain-text AI response from the message list, skipping tool calls and table listings.
ai_agents/langchain_data_agent/agent.py:280
↓ 1 callersFunctionextract_content
Download and extract plain-text article content from a URL using Trafilatura, truncated to 1800 characters.
ai_agents/hacker_news_newsletter_agent/tools.py:43
↓ 1 callersFunctionextract_formulas
Pull LaTeX formulas out of the model's response. Tries delimiter styles in order of preference; falls back to raw lines. Returns a list o
OCR/latex_formula_ocr/app.py:129
↓ 1 callersFunctionextract_from_page
Send a single page to the LLM and return the extracted ClinicalProfile.
multimodal/medical_document_parser/llm_extractor.py:62
↓ 1 callersFunctionextract_html
Strip chain-of-thought tags and return the first complete HTML document found in the LLM output.
ai_agents/hacker_news_newsletter_agent/app.py:54
↓ 1 callersFunctionextract_markdown_local_stream
Main entry point for local extraction, yielding chunks of text.
OCR/glm_ocr_pro/ocr_local.py:126
↓ 1 callersFunctionextract_markdown_local_stream
Main entry point for local extraction, yielding chunks of text.
multimodal/glm_ocr_pro/ocr_local.py:128
↓ 1 callersFunctionextract_prescription
Send image to Mistral Large 3 and extract structured prescription data.
OCR/medical_prescription_digitizer/extractor.py:43
↓ 1 callersFunctionextract_structured_data
(image_file, schema_model, api_key: str)
OCR/image_to_structured_data/processor.py:23
↓ 1 callersFunctionextract_tool_text
(result: Any)
ai_agents/documentation_qna_agent/agent_service.py:80
↓ 1 callersFunctionextract_video_id
Extract the 11-character YouTube video ID from any supported URL format.
rag_apps/youtube_transcript_rag/app.py:23
↓ 1 callersMethodfetch_band
Fetch a Wikipedia page for a band. Returns {"title": str, "url": str, "content": str} or raises an error.
rag_apps/rock_music_rag/rag.py:101
↓ 1 callersFunctionfetch_documentation
Fetch documentation via MCP, then summarize with the LLM.
ai_agents/documentation_qna_agent/agent_service.py:183
↓ 1 callersFunctionfetch_page_content
Fetch a URL directly through MCP using the exact user-provided URL.
ai_agents/documentation_qna_agent/agent_service.py:103
↓ 1 callersFunctionfetch_top_stories
Fetch the most recent tech stories from Hacker News via the Algolia Search API and return them as a list of dicts.
ai_agents/hacker_news_newsletter_agent/tools.py:17
↓ 1 callersFunctionfetch_url
Fetch a URL and return (title, cleaned_text).
rag_apps/reasoning_rag/rag.py:91
↓ 1 callersFunctionfind_most_similar
Find the most similar embedding in a list to the query embedding. Args: query_emb (np.ndarray): Query embedding vector e
rag_apps/vision_rag/utils.py:147
↓ 1 callersFunctionformat_citations
Render retrieved chunks as a numbered citation list.
rag_apps/reasoning_rag/app.py:71
↓ 1 callersFunctionformat_graph_context
(graph_results: dict[str, Any])
rag_apps/hybrid_rag_system/src/context_fusion.py:4
↓ 1 callersFunctionformat_prompt
Format holdings into a markdown table and append the user's question.
ai_agents/stock_portfolio_analyst/agent.py:104
← previousnext →201–300 of 631, ranked by callers