Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sumanth077/Hands-On-AI-Engineering
/ functions
Functions
631 in github.com/Sumanth077/Hands-On-AI-Engineering
⨍
Functions
631
◇
Types & classes
65
↳
Endpoints
3
↓ 34 callers
Method
search
(self, query: str, n_results: int = 5)
rag_apps/graphrag_knowledge_system/src/vector_store.py:57
↓ 28 callers
Method
count
(self)
rag_apps/graphrag_knowledge_system/src/vector_store.py:80
↓ 19 callers
Method
run
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 callers
Function
save_session
()
ai_agents/agentic-form-filler/app.py:35
↓ 7 callers
Method
query
Retrieve relevant chunks and generate an answer with Gemma 4.
rag_apps/rock_music_rag/rag.py:173
↓ 6 callers
Function
_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 callers
Method
_store_docs
Embed and insert LangChain Documents into ChromaDB.
multimodal/multimodal_rag/rag.py:126
↓ 5 callers
Method
resolve
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 callers
Function
_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 callers
Function
_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 callers
Function
_spending_df
()
ai_agents/personal_finance_agent/agent.py:269
↓ 4 callers
Method
embed
Embed a single piece of text and return its vector.
rag_apps/hyde_rag/embedder.py:25
↓ 4 callers
Function
init_memory
Create and cache the Mem0 MemoryClient singleton.
ai_agents/ai_customer_support_agent/app.py:28
↓ 4 callers
Function
render_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 callers
Function
render_platform_report
Render a platform section header with a sentiment pill and the report body.
ai_agents/brand_monitor_agent/app.py:175
↓ 4 callers
Function
set_db_path
Switch the database the agent tools query against.
ai_agents/agentic_sql_search/agent.py:27
↓ 3 callers
Function
_add_entity
(n: str)
rag_apps/graphrag_knowledge_system/src/graph_store.py:251
↓ 3 callers
Function
_client
(api_key: str)
ai_agents/marketing_strategy_agent/marketing_strategy_agent/agents.py:41
↓ 3 callers
Function
_connect
()
OCR/receipt_expense_tracker/receipt_expense_tracker/database.py:31
↓ 3 callers
Method
_describe_media
Ask Gemini to describe/transcribe a media file via its URI.
multimodal/multimodal_rag/rag.py:151
↓ 3 callers
Function
_get_collection
Return the persistent ChromaDB collection, creating it if needed.
rag_apps/reasoning_rag/rag.py:69
↓ 3 callers
Method
_get_mime
(self, file_path: str)
multimodal/multimodal_rag/rag.py:163
↓ 3 callers
Function
_mock_urlopen
Create a mock for urllib.request.urlopen.
ai_agents/multi_agent_research_assistant_ag2/tests/test_research_tools.py:7
↓ 3 callers
Function
_orq_client
Shared Orq.ai router client used by every agent.
ai_agents/ai_debate_agent/debate.py:68
↓ 3 callers
Function
_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 callers
Function
_split_text
Split raw text into chunks separated by blank lines.
rag_apps/rag_agent_with_database_routing/app.py:184
↓ 3 callers
Function
_stream_response
Collect the final response text from a single runner.run_async() call.
ai_agents/ai_travel_planning_agent/app.py:123
↓ 3 callers
Function
_unwrap
Accept both list and {'results': [...]} formats from mem0.
ai_agents/ai_customer_support_agent/app.py:47
↓ 3 callers
Method
_upload_file
Upload a file to Gemini File API, wait for processing, return URI.
multimodal/multimodal_rag/rag.py:140
↓ 3 callers
Function
_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 callers
Method
band_titles
Return an alphabetically sorted list of indexed band titles.
rag_apps/rock_music_rag/rag.py:129
↓ 3 callers
Function
build_llm_config
()
ai_agents/multi_agent_research_assistant_ag2/research_assistant.py:20
↓ 3 callers
Function
chat_completion
( messages: list[dict[str, str]] | list[BaseMessage], *, max_tokens: int = 500, temperature: f
ai_agents/job_posting_agent/nvidia_client.py:189
↓ 3 callers
Function
collection_name_for
Return a ChromaDB-safe collection name derived from the video ID.
rag_apps/youtube_transcript_rag/app.py:39
↓ 3 callers
Method
extract
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 callers
Function
fetch_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 callers
Function
get_active_db_path
Return the currently active database path from session state.
ai_agents/agentic_sql_search/app.py:46
↓ 3 callers
Function
get_chroma_client
Return the cached persistent ChromaDB client.
rag_apps/youtube_transcript_rag/app.py:77
↓ 3 callers
Function
get_model
()
ai_agents/research_team/models.py:8
↓ 3 callers
Function
image_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 callers
Method
ingest
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 callers
Function
load_cache
()
rag_apps/hybrid_rag_system/src/document_processor.py:53
↓ 3 callers
Function
load_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 callers
Method
retrieve
Return the top-k most relevant chunks for the query using BM25.
rag_apps/rock_music_rag/rag.py:161
↓ 2 callers
Function
_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 callers
Function
_dbg
(msg: str)
ai_agents/daily-news-digest/scripts/fetch_rss.py:26
↓ 2 callers
Function
_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 callers
Function
_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 callers
Function
_dedupe_strings
Remove duplicate strings from a list using case-insensitive comparison while preserving order.
multimodal/medical_document_parser/merger.py:28
↓ 2 callers
Method
_embed
(self, text: str)
multimodal/multimodal_rag/rag.py:75
↓ 2 callers
Method
_ensure_collection
(self)
ai_agents/offline_medical_agent/offline_medical_agent/retriever.py:25
↓ 2 callers
Function
_extract_content
(data: dict[str, Any])
ai_agents/job_posting_agent/nvidia_client.py:87
↓ 2 callers
Function
_extract_video_id
(url: str)
audio/music_explorer/app.py:33
↓ 2 callers
Function
_filter_by_period
(df: pd.DataFrame, period: str)
ai_agents/personal_finance_agent/agent.py:392
↓ 2 callers
Function
_get_collection
()
rag_apps/hybrid_rag_system/app.py:92
↓ 2 callers
Function
_get_mistral_client
()
rag_apps/hybrid_rag_system/app.py:83
↓ 2 callers
Function
_headers
(api_key: str)
ai_agents/job_posting_agent/nvidia_client.py:79
↓ 2 callers
Function
_history_block
Render the debate so far as plain text for the next debater.
ai_agents/ai_debate_agent/debate.py:86
↓ 2 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
_llm_context
Text-only context for Kimi — never replay assistant tool_calls to the API.
ai_agents/langchain_data_agent/agent.py:33
↓ 2 callers
Function
_match_flags
(text: str, patterns: list[str])
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:170
↓ 2 callers
Function
_match_weighted
( text: str, patterns: list[tuple[str, float]], )
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py:156
↓ 2 callers
Function
_optimize_image_bytes
Optimize image for local LLM consumption.
OCR/glm_ocr_pro/ocr_local.py:42
↓ 2 callers
Function
_optimize_image_bytes
Optimize image for local LLM consumption.
multimodal/glm_ocr_pro/ocr_local.py:40
↓ 2 callers
Function
_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 callers
Function
_raise_for_status
(response: httpx.Response)
ai_agents/job_posting_agent/nvidia_client.py:97
↓ 2 callers
Method
_rebuild_index
Re-chunk all band docs and rebuild the BM25 index.
rag_apps/rock_music_rag/rag.py:135
↓ 2 callers
Function
_request_with_retries
(request_fn, label: str)
ai_agents/job_posting_agent/nvidia_client.py:119
↓ 2 callers
Function
_require_key
(name: str)
ai_agents/travel_planner_agent/agent.py:33
↓ 2 callers
Function
_require_tool_call
(llm_with_tools, messages, tool_name: str, retry_hint: str)
ai_agents/langchain_data_agent/agent.py:168
↓ 2 callers
Function
_run_agent_async
Run the ADK agent and collect the final response text.
ai_agents/ai_travel_planning_agent/app.py:212
↓ 2 callers
Function
_run_single_image_local_stream
Calls Ollama chat endpoint with streaming enabled.
OCR/glm_ocr_pro/ocr_local.py:81
↓ 2 callers
Function
_run_single_image_local_stream
Calls Ollama chat endpoint with streaming enabled.
multimodal/glm_ocr_pro/ocr_local.py:78
↓ 2 callers
Function
_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 callers
Function
_strip_code_fences
Remove markdown ```python ... ``` fences that the model may wrap around code.
ai_agents/multi_agent_coding_assistant/app.py:38
↓ 2 callers
Function
_temp_hint
(text: str, above: Optional[float] = None, below: Optional[float] = None)
ai_agents/travel_planner_agent/agent.py:260
↓ 2 callers
Function
_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 callers
Function
_youtube_search
Search YouTube via Scrapingdog and return video results.
ai_agents/brand_monitor_agent/brand_monitor_agent/tools.py:54
↓ 2 callers
Method
add_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 callers
Function
build_agent
Create a fresh Agno agent with the provided credentials.
ai_agents/cal_scheduling_agent/app.py:70
↓ 2 callers
Function
build_llm
Build the shared LLM (OpenAI SDK -> Orq.ai router).
rag_apps/reasoning_rag/agents.py:42
↓ 2 callers
Function
build_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 callers
Function
clear_all
()
ai_agents/research_team/app.py:92
↓ 2 callers
Function
delete_session
(sid: str)
ai_agents/agentic-form-filler/app.py:104
↓ 2 callers
Function
download_youtube
(url: str, force: bool = False)
audio/music_explorer/app.py:67
↓ 2 callers
Method
embed
Return a 384-dimensional embedding for a single text string.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/embedder.py:21
↓ 2 callers
Method
embed_batch
Return embeddings for a list of texts.
ai_agents/customer_query_routing_agent/customer_query_routing_agent/embedder.py:26
↓ 2 callers
Method
embed_documents
Embed a list of documents (index time).
rag_apps/rag_agent_with_database_routing/rag_agent/embeddings.py:25
↓ 2 callers
Function
embed_texts
Embed a list of texts with Mistral Embed, batching the requests.
rag_apps/reasoning_rag/rag.py:80
↓ 2 callers
Function
escape_md
Escape Markdown special characters for Telegram.
ai_agents/daily-news-digest/skill.py:150
↓ 2 callers
Function
extract_response
(result: dict[str, Any])
ai_agents/documentation_qna_agent/agent_service.py:151
↓ 2 callers
Function
extract_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 callers
Function
fetch_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 callers
Function
fill_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 callers
Function
fill_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 callers
Function
fmt_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 callers
Function
get_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 callers
Function
get_api_key
()
ai_agents/job_posting_agent/nvidia_client.py:47
next →
1–100 of 631, ranked by callers