MCPcopy Create free account

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

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

↓ 34 callersMethodsearch
(self, query: str, n_results: int = 5)
rag_apps/graphrag_knowledge_system/src/vector_store.py:57
↓ 28 callersMethodcount
(self)
rag_apps/graphrag_knowledge_system/src/vector_store.py:80
↓ 19 callersMethodrun
Run both agents and return a result dict with keys: response, protocol_title, protocol_content, source, score
ai_agents/offline_medical_agent/offline_medical_agent/agents.py:103
↓ 9 callersFunctionsave_session
()
ai_agents/agentic-form-filler/app.py:35
↓ 7 callersMethodquery
Retrieve relevant chunks and generate an answer with Gemma 4.
rag_apps/rock_music_rag/rag.py:173
↓ 6 callersFunction_google_search
Run a Google SERP query via Scrapingdog and return organic results.
ai_agents/brand_monitor_agent/brand_monitor_agent/tools.py:36
↓ 6 callersMethod_store_docs
Embed and insert LangChain Documents into ChromaDB.
multimodal/multimodal_rag/rag.py:126
↓ 5 callersMethodresolve
Generate a grounded customer support response. Called when the orchestrator routes to the resolution path.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py:168
↓ 4 callersFunction_call_llm
Send a system and user prompt to the Orq.ai router and return the text response.
ai_agents/brand_monitor_agent/brand_monitor_agent/analyzers.py:22
↓ 4 callersFunction_hits_to_docs
Convert ScoredPoint results into a standardised context dict.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/router.py:59
↓ 4 callersFunction_spending_df
()
ai_agents/personal_finance_agent/agent.py:269
↓ 4 callersMethodembed
Embed a single piece of text and return its vector.
rag_apps/hyde_rag/embedder.py:25
↓ 4 callersFunctioninit_memory
Create and cache the Mem0 MemoryClient singleton.
ai_agents/ai_customer_support_agent/app.py:28
↓ 4 callersFunctionrender_pdf_as_image
Renders all pages of a PDF (bytes) to a list of PNG image bytes.
ai_agents/agentic-form-filler/pdf_filler.py:180
↓ 4 callersFunctionrender_platform_report
Render a platform section header with a sentiment pill and the report body.
ai_agents/brand_monitor_agent/app.py:175
↓ 4 callersFunctionset_db_path
Switch the database the agent tools query against.
ai_agents/agentic_sql_search/agent.py:27
↓ 3 callersFunction_add_entity
(n: str)
rag_apps/graphrag_knowledge_system/src/graph_store.py:251
↓ 3 callersFunction_client
(api_key: str)
ai_agents/marketing_strategy_agent/marketing_strategy_agent/agents.py:41
↓ 3 callersFunction_connect
()
OCR/receipt_expense_tracker/receipt_expense_tracker/database.py:31
↓ 3 callersMethod_describe_media
Ask Gemini to describe/transcribe a media file via its URI.
multimodal/multimodal_rag/rag.py:151
↓ 3 callersFunction_get_collection
Return the persistent ChromaDB collection, creating it if needed.
rag_apps/reasoning_rag/rag.py:69
↓ 3 callersMethod_get_mime
(self, file_path: str)
multimodal/multimodal_rag/rag.py:163
↓ 3 callersFunction_mock_urlopen
Create a mock for urllib.request.urlopen.
ai_agents/multi_agent_research_assistant_ag2/tests/test_research_tools.py:7
↓ 3 callersFunction_orq_client
Shared Orq.ai router client used by every agent.
ai_agents/ai_debate_agent/debate.py:68
↓ 3 callersFunction_regex_fallback
Deterministic regex-only decision used when LLM output cannot be parsed.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:198
↓ 3 callersFunction_split_text
Split raw text into chunks separated by blank lines.
rag_apps/rag_agent_with_database_routing/app.py:184
↓ 3 callersFunction_stream_response
Collect the final response text from a single runner.run_async() call.
ai_agents/ai_travel_planning_agent/app.py:123
↓ 3 callersFunction_unwrap
Accept both list and {'results': [...]} formats from mem0.
ai_agents/ai_customer_support_agent/app.py:47
↓ 3 callersMethod_upload_file
Upload a file to Gemini File API, wait for processing, return URI.
multimodal/multimodal_rag/rag.py:140
↓ 3 callersFunction_upsert_texts
Embed `text_key` from each record and upsert into the collection.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/vectorstore.py:627
↓ 3 callersMethodband_titles
Return an alphabetically sorted list of indexed band titles.
rag_apps/rock_music_rag/rag.py:129
↓ 3 callersFunctionbuild_llm_config
()
ai_agents/multi_agent_research_assistant_ag2/research_assistant.py:20
↓ 3 callersFunctionchat_completion
( messages: list[dict[str, str]] | list[BaseMessage], *, max_tokens: int = 500, temperature: f
ai_agents/job_posting_agent/nvidia_client.py:189
↓ 3 callersFunctioncollection_name_for
Return a ChromaDB-safe collection name derived from the video ID.
rag_apps/youtube_transcript_rag/app.py:39
↓ 3 callersMethodextract
Run vision extraction on a preprocessed PIL image. Returns a structured dict with receipt fields.
OCR/receipt_expense_tracker/receipt_expense_tracker/extractor.py:63
↓ 3 callersFunctionfetch_page_content
Fetch and return the text content of a web page. Args: url: URL of the page to fetch. max_chars: Maximum characters to return (de
ai_agents/multi_agent_research_assistant_ag2/tools/research_tools.py:43
↓ 3 callersFunctionget_active_db_path
Return the currently active database path from session state.
ai_agents/agentic_sql_search/app.py:46
↓ 3 callersFunctionget_chroma_client
Return the cached persistent ChromaDB client.
rag_apps/youtube_transcript_rag/app.py:77
↓ 3 callersFunctionget_model
()
ai_agents/research_team/models.py:8
↓ 3 callersFunctionimage_to_bytes
Convert PIL Image to bytes. Args: img (PIL.Image): Image to convert format (str): Image format (default: 'PNG')
rag_apps/vision_rag/utils.py:131
↓ 3 callersMethodingest
Load every .md and .txt file in protocols_dir into Qdrant. Wipes any existing entries first so re-ingestion is idempotent.
ai_agents/offline_medical_agent/offline_medical_agent/retriever.py:33
↓ 3 callersFunctionload_cache
()
rag_apps/hybrid_rag_system/src/document_processor.py:53
↓ 3 callersFunctionload_transactions_df
Load all transactions from SQLite into a DataFrame, returning empty if no DB exists.
ai_agents/personal_finance_agent/agent.py:259
↓ 3 callersMethodretrieve
Return the top-k most relevant chunks for the query using BM25.
rag_apps/rock_music_rag/rag.py:161
↓ 2 callersFunction_build_chart
Return a Plotly bar or pie chart for the DataFrame, or None if the data is not plottable.
ai_agents/langchain_data_agent/app.py:133
↓ 2 callersFunction_dbg
(msg: str)
ai_agents/daily-news-digest/scripts/fetch_rss.py:26
↓ 2 callersFunction_debater_system_prompt
Return the system prompt assigning a debater to its position on the given topic.
ai_agents/ai_debate_agent/debate.py:96
↓ 2 callersFunction_debater_user_prompt
Return the user-turn prompt instructing the debater to deliver their argument for this round.
ai_agents/ai_debate_agent/debate.py:108
↓ 2 callersFunction_dedupe_strings
Remove duplicate strings from a list using case-insensitive comparison while preserving order.
multimodal/medical_document_parser/merger.py:28
↓ 2 callersMethod_embed
(self, text: str)
multimodal/multimodal_rag/rag.py:75
↓ 2 callersMethod_ensure_collection
(self)
ai_agents/offline_medical_agent/offline_medical_agent/retriever.py:25
↓ 2 callersFunction_extract_content
(data: dict[str, Any])
ai_agents/job_posting_agent/nvidia_client.py:87
↓ 2 callersFunction_extract_video_id
(url: str)
audio/music_explorer/app.py:33
↓ 2 callersFunction_filter_by_period
(df: pd.DataFrame, period: str)
ai_agents/personal_finance_agent/agent.py:392
↓ 2 callersFunction_get_collection
()
rag_apps/hybrid_rag_system/app.py:92
↓ 2 callersFunction_get_mistral_client
()
rag_apps/hybrid_rag_system/app.py:83
↓ 2 callersFunction_headers
(api_key: str)
ai_agents/job_posting_agent/nvidia_client.py:79
↓ 2 callersFunction_history_block
Render the debate so far as plain text for the next debater.
ai_agents/ai_debate_agent/debate.py:86
↓ 2 callersFunction_is_quota_error
Check whether an error message looks like a 429 quota/rate-limit error.
ai_agents/ai_travel_planning_agent/app.py:146
↓ 2 callersFunction_is_transient_error
Check whether an error message looks like a temporary model-overload error.
ai_agents/ai_travel_planning_agent/app.py:141
↓ 2 callersFunction_keyword_fallback
Classify by keyword matching when the model returns non-JSON.
rag_apps/rag_agent_with_database_routing/rag_agent/router.py:63
↓ 2 callersFunction_llm_context
Text-only context for Kimi — never replay assistant tool_calls to the API.
ai_agents/langchain_data_agent/agent.py:33
↓ 2 callersFunction_match_flags
(text: str, patterns: list[str])
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:170
↓ 2 callersFunction_match_weighted
( text: str, patterns: list[tuple[str, float]], )
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:156
↓ 2 callersFunction_optimize_image_bytes
Optimize image for local LLM consumption.
OCR/glm_ocr_pro/ocr_local.py:42
↓ 2 callersFunction_optimize_image_bytes
Optimize image for local LLM consumption.
multimodal/glm_ocr_pro/ocr_local.py:40
↓ 2 callersFunction_parse_results
Parse raw SQL query results (JSON list or pipe-delimited string) into a DataFrame.
ai_agents/langchain_data_agent/app.py:90
↓ 2 callersFunction_raise_for_status
(response: httpx.Response)
ai_agents/job_posting_agent/nvidia_client.py:97
↓ 2 callersMethod_rebuild_index
Re-chunk all band docs and rebuild the BM25 index.
rag_apps/rock_music_rag/rag.py:135
↓ 2 callersFunction_request_with_retries
(request_fn, label: str)
ai_agents/job_posting_agent/nvidia_client.py:119
↓ 2 callersFunction_require_key
(name: str)
ai_agents/travel_planner_agent/agent.py:33
↓ 2 callersFunction_require_tool_call
(llm_with_tools, messages, tool_name: str, retry_hint: str)
ai_agents/langchain_data_agent/agent.py:168
↓ 2 callersFunction_run_agent_async
Run the ADK agent and collect the final response text.
ai_agents/ai_travel_planning_agent/app.py:212
↓ 2 callersFunction_run_single_image_local_stream
Calls Ollama chat endpoint with streaming enabled.
OCR/glm_ocr_pro/ocr_local.py:81
↓ 2 callersFunction_run_single_image_local_stream
Calls Ollama chat endpoint with streaming enabled.
multimodal/glm_ocr_pro/ocr_local.py:78
↓ 2 callersFunction_stream_response_with_retry
Call _stream_response, retrying on transient model errors. 503/UNAVAILABLE overload errors use the existing short exponential backoff. 429/RE
ai_agents/ai_travel_planning_agent/app.py:179
↓ 2 callersFunction_strip_code_fences
Remove markdown ```python ... ``` fences that the model may wrap around code.
ai_agents/multi_agent_coding_assistant/app.py:38
↓ 2 callersFunction_temp_hint
(text: str, above: Optional[float] = None, below: Optional[float] = None)
ai_agents/travel_planner_agent/agent.py:260
↓ 2 callersFunction_upload_to_gemini
Upload a local audio file to the Gemini Files API and return the file object.
audio/music_explorer/app.py:115
↓ 2 callersFunction_youtube_search
Search YouTube via Scrapingdog and return video results.
ai_agents/brand_monitor_agent/brand_monitor_agent/tools.py:54
↓ 2 callersMethodadd_band
Fetch and add a band to the knowledge base. Rebuilds the index. Returns the resolved Wikipedia title.
rag_apps/rock_music_rag/rag.py:113
↓ 2 callersFunctionbuild_agent
Create a fresh Agno agent with the provided credentials.
ai_agents/cal_scheduling_agent/app.py:70
↓ 2 callersFunctionbuild_llm
Build the shared LLM (OpenAI SDK -> Orq.ai router).
rag_apps/reasoning_rag/agents.py:42
↓ 2 callersFunctionbuild_pipeline
Initialise and return all pipeline components. Call once at startup and reuse across queries. Returns: (qdrant_client, embeddings, orq_cl
rag_apps/rag_agent_with_database_routing/rag_agent/pipeline.py:41
↓ 2 callersFunctionclear_all
()
ai_agents/research_team/app.py:92
↓ 2 callersFunctiondelete_session
(sid: str)
ai_agents/agentic-form-filler/app.py:104
↓ 2 callersFunctiondownload_youtube
(url: str, force: bool = False)
audio/music_explorer/app.py:67
↓ 2 callersMethodembed
Return a 384-dimensional embedding for a single text string.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/embedder.py:21
↓ 2 callersMethodembed_batch
Return embeddings for a list of texts.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/embedder.py:26
↓ 2 callersMethodembed_documents
Embed a list of documents (index time).
rag_apps/rag_agent_with_database_routing/rag_agent/embeddings.py:25
↓ 2 callersFunctionembed_texts
Embed a list of texts with Mistral Embed, batching the requests.
rag_apps/reasoning_rag/rag.py:80
↓ 2 callersFunctionescape_md
Escape Markdown special characters for Telegram.
ai_agents/daily-news-digest/skill.py:150
↓ 2 callersFunctionextract_response
(result: dict[str, Any])
ai_agents/documentation_qna_agent/agent_service.py:151
↓ 2 callersFunctionextract_text
Safely extract a plain string from an LLM response. langchain-google-genai can return response.content as either a str or a list of conte
ai_agents/agentic_rag_system/rag_graph.py:33
↓ 2 callersFunctionfetch_articles
Fetch articles from all feeds in sources_path published within the last `hours`. Args: sources_path: Path to the JSON file listing RSS fe
ai_agents/daily-news-digest/scripts/fetch_rss.py:140
↓ 2 callersFunctionfill_pdf_with_exact_mapping
Fill PDF widgets using a pre-calculated logical→internal mapping. data: {logical_name: value} mapping: {logical_name: pdf_internal_wid
ai_agents/agentic-form-filler/pdf_filler.py:155
↓ 2 callersFunctionfill_pdf_with_mapping
High-speed In-Memory Stamping Engine. Uses fuzzy matching and coordinate caching for 50ms frame renders.
ai_agents/agentic-form-filler/pdf_filler.py:6
↓ 2 callersFunctionfmt_ts
Format a timestamp in seconds as a human-readable M:SS or H:MM:SS string.
rag_apps/youtube_transcript_rag/app.py:47
↓ 2 callersFunctionget_all_memories
Return all stored memories for the given user, or an empty list on error.
ai_agents/ai_customer_support_agent/app.py:54
↓ 2 callersFunctionget_api_key
()
ai_agents/job_posting_agent/nvidia_client.py:47
next →1–100 of 631, ranked by callers