Python for Gen AI
Python techniques and libraries used in Gen AI engineering: async programming, decorators, data processing, and AI-specific Python patterns.
2
Easy Concepts
31
Medium Concepts
5
Hard Concepts
Easy Concepts (2)
What are all the basics of Python?
pythonbasicsfundamentalsdata-structuresoop
What are the development tools available in Google ADK (adk web, adk run, adk api_server, adk eval)?
google-adkclidevelopmentdebuggingweb-ui
Medium Concepts (31)
Explain decorators in Python. How would you use them in an LLM application?
gen-aipython
View Details →Code
What are context managers? How would you use them for LLM resource management?
gen-aipython
View Details →Code
Explain async/await in Python. Why is it important for API-heavy applications?
gen-aipython
View Details →Code
What are generators in Python? How are they used in streaming LLM responses?
gen-aipython
View Details →Code
Explain list comprehensions vs. loops in Python. When is each appropriate?
gen-aipython
View Details →Code
Explain type hints and why they're important in production Gen AI code.
gen-aipython
View Details →Code
Compare LangChain, LlamaIndex, and Haystack. When would you use each?
gen-ailangchainllm
View Details →Code
Explain embeddings. How would you choose an embedding model?
gen-aiembeddingsvector-db
View Details →Code
How would you implement a vector search with similarity scoring?
gen-aivector-dbembeddings
View Details →Code
What's the difference between Faiss and Pinecone for vector search?
gen-aivector-db
View Details →Code
How would you structure environment variables for API keys in production?
gen-aipythonmlops
View Details →Code
How would you implement structured logging in a Gen AI application?
gen-aipythonmlops
View Details →Code
What are all the Python libraries used for AI Engineering (Agent Development, Fine-Tuning LLM, etc.) and what are they used for?
pythonlibrarieslangchainllama-indexpeft
What is LangChain? What are all the use cases of LangChain? Is LangChain open-source? Can we use it for enterprise and do we need to pay? What is the pricing of LangChain?
langchainpythonragagentsopen-source
Explain me detailly about the Oops concept in Python?
pythonoopclassesinheritanceencapsulation
Explain me detailly about the types of principles in Python?
pythonprinciplessoliddrykiss
Explain me detailly about the Folder Structure need to be followed in Python along with the flow diagram?
pythonfolder-structureproject-structurearchitecturebest-practices
How to use Dependency Injection in Python?
pythondependency-injectiondifastapisolid
What are all the tool types in Google ADK? Explain Function Tools, MCP Tools, OpenAPI Tools, and Agents-as-Tools with examples.
google-adktoolsfunction-toolsmcpopenapi
How to use different LLM models (Gemini, OpenAI, Anthropic, Ollama) in Google ADK?
google-adkmodelsgeminiopenaianthropic
Explain Session and State Management in Google ADK with state prefix scoping (app, user, temp).
google-adksessionsstatememoryartifacts
What are Callbacks and Plugins in Google ADK? Explain the 6 callback hooks and plugin system.
google-adkcallbackspluginshooksguardrails
How to create custom tools (Function Tools, MCP Tools, OpenAPI Tools) in Google ADK with code examples?
google-adktoolsfunction-toolsmcpopenapi
Is Python single-threaded or multi-threaded? Explain with examples. How does thread locking work in Python?
pythonthreadinggilconcurrencylocks
In Flutter, heavy computational tasks run in Isolates. What is the equivalent in Python? How do you run CPU-heavy tasks without blocking the main thread?
pythonmultiprocessingconcurrencyparallelismprocess-pool
How to increase the performance of a Python application? Explain key optimization techniques with examples.
pythonperformanceoptimizationprofilingcaching
What are the different AI frameworks available in the market that are similar to MLX?
gen-aimlxai-frameworksjaxpytorch
Hard Concepts (5)
Explain me detailly about the Architectural design patterns in Python along with the flow diagram?
pythondesign-patternsarchitecturesingletonfactory
In Flutter we have state-management to manage the state of the application similarly do we have anything in Python if yes explain me along with the flow diagram?
pythonstate-managementcontextvarsredislangchain
Explain all the agent types in Google ADK (LlmAgent, SequentialAgent, ParallelAgent, LoopAgent, CustomAgent) with flow diagrams.
google-adkagentssequentialparallelloop
How to build a Multi-Agent System in Google ADK? Explain parent-child hierarchy and delegation with code examples.
google-adkmulti-agentorchestrationdelegationhierarchy
How to build a RAG pipeline using Google ADK with code examples?
google-adkragretrievalvector-searchpipeline