MCPcopy Create free account

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

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

↓ 2 callersFunctionget_client
Return a connected VectorAI DB client.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/vectorstore.py:599
↓ 2 callersFunctionget_cohere_embedding
Get embedding for text or image using Cohere Embed-4. Args: api_key (str): Cohere API key input_data (str or bytes): Tex
rag_apps/vision_rag/utils.py:17
↓ 2 callersFunctionget_embedding_fn
Return the cached SentenceTransformer embedding function for ChromaDB.
rag_apps/youtube_transcript_rag/app.py:70
↓ 2 callersFunctionget_llm
()
ai_agents/documentation_qna_agent/agent_service.py:42
↓ 2 callersFunctionget_mcp_config
()
ai_agents/documentation_qna_agent/agent_service.py:56
↓ 2 callersFunctionget_or_create_pipeline
(google_key: str)
rag_apps/hyde_rag/app.py:23
↓ 2 callersFunctionget_rag
Return existing RAG instance or create a new one.
rag_apps/rock_music_rag/app.py:196
↓ 2 callersMethodhyde_embed
Embed N hypothetical documents and average their vectors. The averaged vector sits closer in embedding space to real relevant documen
rag_apps/hyde_rag/embedder.py:37
↓ 2 callersMethodindex_size
Return the total number of chunks currently in the BM25 index.
rag_apps/rock_music_rag/rag.py:155
↓ 2 callersFunctioningest_csv
Parse CSV, categorize transactions, and persist to SQLite.
ai_agents/personal_finance_agent/agent.py:126
↓ 2 callersFunctioninit_db
Create tables and seed sample data if the database doesn't exist yet.
ai_agents/agentic_sql_search/database.py:228
↓ 2 callersFunctionlist_cached_docs
()
rag_apps/hybrid_rag_system/src/document_processor.py:97
↓ 2 callersFunctionload_combined_graph
()
rag_apps/hybrid_rag_system/src/graph_indexer.py:155
↓ 2 callersFunctionload_expenses
Return expenses as a DataFrame, optionally filtered.
OCR/receipt_expense_tracker/receipt_expense_tracker/database.py:62
↓ 2 callersFunctionload_session
(sid: str)
ai_agents/agentic-form-filler/app.py:61
↓ 2 callersFunctionmemory_text
Extract the display text from a memory object returned by Mem0.
ai_agents/ai_customer_support_agent/app.py:93
↓ 2 callersFunctionnotify
(stage: str)
ai_agents/job_posting_agent/agents/pipeline.py:74
↓ 2 callersFunctionparse_sections
(text: str)
multimodal/video_understanding_agent/app.py:36
↓ 2 callersFunctionrender_steps
Render agent intermediate steps inside a Streamlit expander.
ai_agents/agentic_sql_search/app.py:51
↓ 2 callersFunctionrun_async
(coro)
ai_agents/documentation_qna_agent/app.py:46
↓ 2 callersFunctionrun_browser_agent
Run the browser-use agent for a single natural language instruction. Args: instruction: The user's natural language task. max_ste
ai_agents/browser_automation_agent/agent.py:170
↓ 2 callersFunctionrun_creative_director
Translate the strategy into a full creative campaign plan.
ai_agents/marketing_strategy_agent/marketing_strategy_agent/agents.py:143
↓ 2 callersFunctionrun_market_analyst
Research the market using Serper search and return a structured brief.
ai_agents/marketing_strategy_agent/marketing_strategy_agent/agents.py:53
↓ 2 callersFunctionrun_strategy_officer
Turn market research into a full marketing strategy.
ai_agents/marketing_strategy_agent/marketing_strategy_agent/agents.py:107
↓ 2 callersFunctionsearch_memory
(client: VectorAIClient, vector: list[float], top_k: int = 2)
ai_agents/customer_query_routing_agent/customer_query_routing_agent/vectorstore.py:682
↓ 2 callersFunctionsetup_collections
Create all four collections if they do not already exist.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/vectorstore.py:614
↓ 2 callersFunctionsplit_trace
Split a streamed buffer into (reasoning, answer) for the two panels.
rag_apps/reasoning_rag/agents.py:148
↓ 2 callersFunctionstore_resolved_query
Persist a resolved query into VectorAI DB memory. This collection grows over time and is searched alongside the static sources.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/vectorstore.py:692
↓ 2 callersMethodto_markdown
Render the result as a chat-friendly markdown block.
ai_agents/browser_automation_agent/agent.py:51
↓ 2 callersFunctionvalidate_keys
(google_key: str)
rag_apps/hyde_rag/app.py:36
↓ 2 callersFunctionweb_search
Search the web using DuckDuckGo Instant Answer API. Returns a JSON string with top results including titles, URLs, and snippets. Args:
ai_agents/multi_agent_research_assistant_ag2/tools/research_tools.py:9
↓ 2 callersFunctionyt_link
Build a YouTube URL that starts playback at the given second offset.
rag_apps/youtube_transcript_rag/app.py:55
↓ 1 callersFunction_agent_text
Run an agent once (no streaming) and return its text content.
rag_apps/reasoning_rag/agents.py:103
↓ 1 callersFunction_build_agent_message
( query: str, routing_confidence: float, pre: dict, )
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:287
↓ 1 callersFunction_build_client
Build and return an OpenAI client pointed at the Orq.ai router.
multimodal/medical_document_parser/llm_extractor.py:31
↓ 1 callersFunction_build_contents
Build the contents list for a multi-turn conversation. history is a list of {"role": "user"|"assistant", "content": "..."} dicts. The aud
audio/music_explorer/app.py:132
↓ 1 callersFunction_build_empathy_message
Narrow prompt for the LLM: produce only a short empathetic acknowledgment. No context documents -- the LLM does not need them and should not
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:110
↓ 1 callersFunction_build_messages
()
ai_agents/travel_planner_agent/app.py:46
↓ 1 callersFunction_build_model
Build and return the ChatOpenAI client pointed at the Orq.ai router.
ai_agents/langchain_data_agent/agent.py:80
↓ 1 callersFunction_build_parser
()
ai_agents/daily-news-digest/scripts/fetch_rss.py:184
↓ 1 callersFunction_build_prompt
(company: str, role: str)
ai_agents/job_posting_agent/agents/pipeline.py:28
↓ 1 callersFunction_build_resolution_message
(query: str, routing: RoutingResult)
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:88
↓ 1 callersFunction_build_tools
Build the LangChain SQL toolkit and replace the default query tool with the read-only version.
ai_agents/langchain_data_agent/agent.py:96
↓ 1 callersFunction_cached_ollama_status
()
OCR/glm_ocr_pro/app.py:42
↓ 1 callersFunction_cached_ollama_status
()
multimodal/glm_ocr_pro/app.py:40
↓ 1 callersFunction_case_reference
Generate a deterministic case reference from the current Unix timestamp.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:127
↓ 1 callersFunction_check_env
()
ai_agents/travel_planner_agent/app.py:21
↓ 1 callersFunction_classify_pdf_page
Route a PDF page to text or vision extraction based on the extracted character count.
multimodal/medical_document_parser/document_processor.py:49
↓ 1 callersFunction_clean_text
Remove Wikipedia markup artifacts.
rag_apps/rock_music_rag/rag.py:78
↓ 1 callersFunction_column_names_from_sql
Derive display column names from the SELECT list when results are bare tuples.
ai_agents/langchain_data_agent/app.py:40
↓ 1 callersFunction_create_agent
Build and compile the full LangGraph SQL agent workflow against the Chinook database.
ai_agents/langchain_data_agent/agent.py:106
↓ 1 callersFunction_dedupe_lab_findings
Deduplicate lab findings by test name, keeping the most severe status.
multimodal/medical_document_parser/merger.py:15
↓ 1 callersFunction_detect_sentiment_pill
Return an HTML pill based on keywords in the report.
ai_agents/brand_monitor_agent/app.py:161
↓ 1 callersFunction_escalation_template
Assemble the final escalation message. The empathy paragraph comes from the LLM. All structural facts are hardcoded here and never left to LL
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:132
↓ 1 callersFunction_extract_content
Return a short text snippet from the entry body. Prefers the full content field, falls back to summary/description. Strips to a max of 500 ch
ai_agents/daily-news-digest/scripts/fetch_rss.py:70
↓ 1 callersFunction_extract_from_chunk
(client: Mistral, text: str)
rag_apps/hybrid_rag_system/src/graph_indexer.py:47
↓ 1 callersFunction_extract_history
Best-effort extraction of useful fields from a browser-use history object. The browser-use API surface has shifted across versions, so each acces
ai_agents/browser_automation_agent/agent.py:86
↓ 1 callersFunction_extract_pdf
Extract text from a PDF and split into page-level chunks.
rag_apps/rag_agent_with_database_routing/app.py:189
↓ 1 callersFunction_extract_reply
(messages: list)
ai_agents/personal_finance_agent/agent.py:489
↓ 1 callersFunction_extract_sql_metadata
Extract the last SQL query and its raw result string from the agent message history.
ai_agents/langchain_data_agent/agent.py:266
↓ 1 callersFunction_extract_text
Gradio may store message content as a plain string or a list of content blocks.
audio/music_explorer/app.py:120
↓ 1 callersFunction_fetch
()
multimodal/multimodal_weather_app/app.py:107
↓ 1 callersFunction_format_context_block
(doc: dict)
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:70
↓ 1 callersFunction_format_flagged_text
Format the list of flagged abnormal values into a human-readable string.
multimodal/medical_document_parser/app.py:27
↓ 1 callersFunction_format_weekly_budget
()
ai_agents/personal_finance_agent/agent.py:279
↓ 1 callersFunction_get_client
Build and return an OpenAI client pointed at the Orq.ai router.
audio/multilingual_audio_translator/translator.py:39
↓ 1 callersFunction_get_device_config
Return the appropriate device and compute type based on CUDA availability.
audio/multilingual_audio_translator/transcriber.py:16
↓ 1 callersFunction_get_mistral
Lazily build the Mistral client so import never fails without a key.
rag_apps/reasoning_rag/rag.py:57
↓ 1 callersFunction_get_pipeline
Return the cached KPipeline for the given Kokoro language code, creating it if needed.
audio/multilingual_audio_translator/synthesizer.py:41
↓ 1 callersFunction_google_news
Fetch Google News results for a query via Scrapingdog.
ai_agents/brand_monitor_agent/brand_monitor_agent/tools.py:45
↓ 1 callersFunction_has_knowledge
Return True if the knowledge directory has at least one real file.
ai_agents/research_team/team.py:30
↓ 1 callersFunction_image_to_page
Convert raw image bytes to a vision ProcessedPage, normalizing to RGB PNG.
multimodal/medical_document_parser/document_processor.py:61
↓ 1 callersFunction_init_db
(conn: sqlite3.Connection)
ai_agents/personal_finance_agent/agent.py:110
↓ 1 callersFunction_init_session
()
ai_agents/travel_planner_agent/app.py:26
↓ 1 callersFunction_init_session
()
ai_agents/personal_finance_agent/app.py:38
↓ 1 callersFunction_iter_pdf_image_bytes
Renders each page of a PDF to a PNG byte string, up to max_pages.
OCR/glm_ocr_pro/ocr_local.py:27
↓ 1 callersFunction_iter_pdf_image_bytes
(pdf_bytes: bytes, max_pages: int, render_scale: float = 2.0)
multimodal/glm_ocr_pro/ocr_local.py:26
↓ 1 callersFunction_label
(score: float)
ai_agents/customer_query_routing_agent/customer_query_routing_agent/router.py:51
↓ 1 callersFunction_looks_like_html_table
Returns True if the text appears to contain an HTML table.
OCR/glm_ocr_pro/app.py:15
↓ 1 callersFunction_looks_like_html_table
(text: str)
multimodal/glm_ocr_pro/app.py:14
↓ 1 callersFunction_merge_patient
Merge two PatientInfo objects, preferring the first non-empty value for each field.
multimodal/medical_document_parser/merger.py:6
↓ 1 callersFunction_missing_keys
Return a list of required environment variable names that are not currently set.
rag_apps/reasoning_rag/app.py:36
↓ 1 callersFunction_normalize_columns
(df: pd.DataFrame)
ai_agents/personal_finance_agent/agent.py:68
↓ 1 callersFunction_normalize_header
(line: str)
ai_agents/job_posting_agent/agents/pipeline.py:42
↓ 1 callersFunction_normalize_mistral_content
(content)
ai_agents/multi_agent_research_assistant_ag2/research_assistant.py:40
↓ 1 callersFunction_normalize_period
(period: str)
ai_agents/finagent/financial_agents.py:13
↓ 1 callersFunction_parse_amount
(row: pd.Series)
ai_agents/personal_finance_agent/agent.py:87
↓ 1 callersFunction_parse_entry_date
Extract a timezone-aware datetime from a feedparser entry. Tries published_parsed first, then updated_parsed. Returns None if neither is avai
ai_agents/daily-news-digest/scripts/fetch_rss.py:52
↓ 1 callersFunction_parse_extraction
(raw: str)
rag_apps/hybrid_rag_system/src/graph_indexer.py:33
↓ 1 callersFunction_parse_json
Extract JSON from the model response robustly. Handles cases where the model wraps the output in markdown fences.
OCR/receipt_expense_tracker/receipt_expense_tracker/extractor.py:92
↓ 1 callersFunction_parse_json_safely
Extract and parse the first JSON object found in an LLM response string.
ai_agents/agentic-form-filler/llm.py:63
↓ 1 callersFunction_parse_response_text
Strip markdown fences from the LLM response and parse it into a ClinicalProfile.
multimodal/medical_document_parser/llm_extractor.py:52
↓ 1 callersFunction_parse_verdict
Best-effort extraction of the judge's JSON, with graceful fallbacks.
ai_agents/ai_debate_agent/debate.py:217
↓ 1 callersFunction_poll_for_completion
(api_key: str, request_id: str)
ai_agents/job_posting_agent/nvidia_client.py:147
↓ 1 callersFunction_post_chat_completion
( api_key: str, body: dict[str, Any] )
ai_agents/job_posting_agent/nvidia_client.py:176
↓ 1 callersFunction_query_terms
(query: str)
rag_apps/hybrid_rag_system/src/graph_retriever.py:16
↓ 1 callersFunction_regex_prescan
Run the full regex pass and return a structured summary dict.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:179
↓ 1 callersFunction_render_sidebar
()
ai_agents/personal_finance_agent/app.py:45
↓ 1 callersFunction_render_transactions_preview
()
ai_agents/personal_finance_agent/app.py:106
↓ 1 callersFunction_render_transcript
Format the running transcript as markdown.
ai_agents/ai_debate_agent/app.py:24
← previousnext →101–200 of 631, ranked by callers