<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ana Lopez Moreno on Medium]]></title>
        <description><![CDATA[Stories by Ana Lopez Moreno on Medium]]></description>
        <link>https://medium.com/@darkanita?source=rss-b4c0d1550b69------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*IHW0k_1hkFFvSThyEOTNmA.jpeg</url>
            <title>Stories by Ana Lopez Moreno on Medium</title>
            <link>https://medium.com/@darkanita?source=rss-b4c0d1550b69------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:47:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@darkanita/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[GenAIOps con MLflow 3.18: del tráfico de producción al quality gate]]></title>
            <link>https://medium.com/@darkanita/genaiops-con-mlflow-3-18-del-tr%C3%A1fico-de-producci%C3%B3n-al-quality-gate-249d970853c3?source=rss-b4c0d1550b69------2</link>
            <guid isPermaLink="false">https://medium.com/p/249d970853c3</guid>
            <category><![CDATA[mlflow]]></category>
            <category><![CDATA[genaiops]]></category>
            <category><![CDATA[generative-ai]]></category>
            <dc:creator><![CDATA[Ana Lopez Moreno]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 18:39:43 GMT</pubDate>
            <atom:updated>2026-11-25T23:26:23.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-zUmiXgIRuUOtTgr6pUVA.png" /></figure><p><em>ENG This article is also available in English: </em><a href="https://medium.com/@darkanita/genaiops-with-mlflow-3-18-from-production-traffic-to-a-quality-gate-a417feacfbc1"><em>GenAIOps with MLflow 3.18: from production traffic to a quality gate</em></a></p><p>Un promedio más alto en tu evaluación no significa que tu agente mejoró. En mi repo de GenAIOps, una versión del asistente subió el promedio y, al mismo tiempo, empeoró 7 de 14 respuestas. MLflow 3.18 trae las herramientas para verlo y frenarlo antes de que llegue a producción.</p><p>Creé <a href="https://github.com/darkanita/GenAIOps_Pycon2025">GenAIOps_Pycon2025</a> en 2025 para una propuesta de charla en PyCon que no fue aceptada. La charla no se dio, pero seguí usando el repo en mis clases y talleres para enseñar GenAIOps, y nunca había escrito sobre él. Con el lanzamiento de MLflow 3.18 lo actualicé completo y lo dejé bilingüe: todo funciona en español y en inglés. Como MLflow Ambassador quiero compartir lo que aprendí al hacerlo.</p><p>En este artículo vas a encontrar:</p><ul><li>Qué es el repo y cómo está armado.</li><li>Las cuatro novedades principales de MLflow 3.18, cada una con código que corre.</li><li>Un laboratorio que puedes ejecutar en 10 minutos, casi todo sin API key.</li></ul><h3>El repo: un asistente de RR.HH. con todo el ciclo GenAIOps</h3><p>El repo es un asistente RAG que responde preguntas de empleados de una empresa ficticia, Contoso Electronics, a partir de seis PDFs: opciones de beneficios, el detalle de los dos planes de salud, el programa PerksPlus, el manual del empleado y la biblioteca de roles. La aplicación es pequeña a propósito; lo interesante es todo lo que la rodea.</p><p>La aplicación es la excusa para practicar el ciclo completo de mejora de un sistema con LLM. Cambias el prompt, registras una versión, la evalúas con jueces, la comparas con la de producción y, si es mejor, la promueves con un alias, sin tocar el código. Después los usuarios generan trazas y feedback 👍/👎, y las respuestas con 👎 vuelven al dataset de evaluación. El README trae un recorrido guiado de 60 a 90 minutos y un desafío para estudiantes.</p><h3>Cómo está organizado</h3><pre>GenAIOps_Pycon2025/<br>├── app/                  ← la aplicación<br>│   ├── rag_pipeline.py   ← índice FAISS y cadena conversacional<br>│   ├── chat_ui.py        ← chat en Streamlit con fuentes y 👍/👎<br>│   ├── prompt_registry.py<br>│   ├── run_eval.py       ← evaluación con jueces LLM y comparación<br>│   ├── code_scorers.py   ← scorers de código (offline y online)<br>│   ├── monitoring.py     ← evaluación online del chat<br>│   └── prompts/          ← versiones del prompt (español y en/)<br>├── data/pdfs/            ← los seis documentos fuente<br>├── tests/                ← datasets de evaluación y quality gate<br>├── labs/mlflow_318/      ← laboratorio de las novedades de 3.18<br>├── .github/workflows/    ← evaluación, tests y laboratorio en CI<br>├── .devcontainer/        ← listo para Codespaces<br>└── README.md, README.es.md, CHALLENGE.md, DESAFIO.md</pre><p>Y estas son las piezas principales:</p><ul><li><strong>RAG</strong>: LangChain ConversationalRetrievalChain + FAISS; OpenAI o Groq (con embeddings locales de FastEmbed) (app/rag_pipeline.py, app/llm_provider.py)</li><li><strong>Interfaz</strong>: Streamlit, con referencias a documento y página y feedback 👍/👎 (app/chat_ui.py)</li><li><strong>Prompts versionados</strong>: Prompt Registry de MLflow con alias @production (app/prompt_registry.py)</li><li><strong>Observabilidad</strong>: Tracing automático de LangChain, versiones de la app (LoggedModel) y feedback humano en la traza (app/tracking.py)</li><li><strong>Evaluación</strong>: mlflow.genai.evaluate con 7 jueces LLM y un dataset verificado en los PDFs (app/run_eval.py, tests/eval_dataset.json)</li><li><strong>CI/CD</strong>: GitHub Actions evalúa cada cambio y lo bloquea si no pasa el quality gate (.github/workflows/eval.yml)</li></ul><p>Todo corre en un Codespace o en local, y con Groq se puede usar el plan gratuito.</p><h3>De dónde viene</h3><p>Desde aquella propuesta a PyCon, el repo ha crecido junto con MLflow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n3Mn1uQ0IOFoDpZ_6KsR7g.png" /><figcaption>El repo ha crecido junto con MLflow desde 2025.</figcaption></figure><p>Este artículo parte de la versión 3.6 y cuenta el salto a 3.18.</p><h3>Qué cambié al pasar de MLflow 3.6 a 3.18</h3><p>El salto a 3.18 no rompió nada: el código existente funcionó igual con mlflow&gt;=3.18.0. Los cambios fueron para aprovechar las funciones nuevas.</p><ul><li><strong>run_eval.py --baseline &lt;prompt&gt;</strong>: Comparar la versión candidata contra la de producción, pregunta por pregunta (app/run_eval.py)</li><li><strong>Gate sin regresiones</strong>: Fallar el CI si un juez empeora con significancia estadística (tests/test_run_eval.py)</li><li><strong>Scorers de código</strong>: Reglas deterministas, sin LLM y sin costo, junto a los jueces (app/code_scorers.py)</li><li><strong>Evaluación online</strong>: Las mismas reglas sobre el tráfico real del chat (app/monitoring.py)</li><li><strong>Sesiones en las trazas</strong>: Cada conversación lleva session_id, user_id y environment (app/tracking.py)</li><li><strong>Dataset de 5 a 10 preguntas</strong>: compare_evaluations necesita al menos 6 pares por juez (tests/eval_dataset.json)</li><li><strong>Repo bilingüe</strong>: APP_LANG=es o APP_LANG=en cambia la app, los mensajes, el prompt, el dataset y el laboratorio (app/i18n.py)</li><li><strong>Laboratorio paso a paso</strong>: Practicar todo con un agente simulado, sin API key (labs/mlflow_318/)</li></ul><p>El cambio de sesiones es pequeño pero importante. Antes cada turno del chat era una traza suelta; ahora una función ask() envuelve la cadena en una traza raíz con los metadatos de la conversación:</p><pre>with mlflow.start_span(name=&quot;hr_assistant&quot;, span_type=SpanType.AGENT) as span:<br>    span.set_inputs({&quot;question&quot;: question})<br>    mlflow.update_current_trace(<br>        metadata={&quot;mlflow.trace.session&quot;: session_id, &quot;mlflow.trace.user&quot;: user_id},<br>        tags={&quot;environment&quot;: APP_ENV},<br>    )<br>    result = chain.invoke({&quot;question&quot;: question, &quot;chat_history&quot;: history})<br>    span.set_outputs(result[&quot;answer&quot;])</pre><p>Con eso la UI agrupa la conversación en la vista <strong>Sessions</strong>, los scorers de sesión la evalúan completa y la etiqueta environment filtra qué tráfico se monitorea.</p><h3>1. Comparar contra una línea base: el promedio no basta</h3><p>mlflow.genai.compare_evaluations() empareja cada pregunta de dos evaluaciones y te dice, por juez, si la diferencia es real o ruido. Usa McNemar para jueces de sí/no y Wilcoxon para puntajes numéricos, con intervalo de confianza y p-value.</p><p>En el laboratorio, la versión v2 del asistente cita la fuente y es mucho más corta que v1. Mejora con significancia en cites_source (0.00 → 1.00), concise_answer (0.43 → 1.00) y longitud de la respuesta (98 → 15 palabras). Pero covers_key_facts cae de 1.00 a 0.63 (p = 0.016): v2 recorta la respuesta a la primera oración y pierde los datos clave.</p><pre>result = mlflow.genai.compare_evaluations(<br>    candidate_run_id=candidate_id,<br>    baseline_run_id=baseline_id,<br>    greater_is_better={&quot;answer_length&quot;: False},<br>    log_results=True,          # queda guardada en el run candidato<br>)<br>result.summary()               # una fila por juez: medias, diff, IC, p-value<br>result.paired_rows             # cada pregunta con su traza base y candidata<br>result.assert_improved(scorers=[&quot;cites_source&quot;])   # lanza AssertionError si no mejora</pre><p>paired_rows es lo que muestra el problema: 7 de las 14 preguntas empeoraron, todas aquellas cuya respuesta no cabe en la primera oración.</p><ul><li>¿Qué cubre el plan de beneficios Northwind Health Plus? <strong>100% → 0%</strong></li><li>¿Qué no cubre Northwind Standard en comparación con Health Plus? <strong>100% → 0%</strong></li><li>¿Qué medicamentos cubre Northwind Standard? <strong>100% → 0%</strong></li><li>¿Qué incluye el programa PerksPlus? <strong>100% → 25%</strong></li><li>¿Con qué frecuencia se realizan las evaluaciones de desempeño? <strong>100% → 33%</strong></li><li>¿Northwind Standard cubre servicios fuera de la red? <strong>100% → 50%</strong></li><li>¿Qué servicios de visión y dentales cubre cada plan? <strong>100% → 75%</strong></li></ul><p>Por eso el quality gate del laboratorio tiene dos reglas: mejora significativa en los jueces objetivo (assert_improved) y ninguna pregunta peor en los jueces &quot;guardianes&quot; (paired_rows). En GitHub Actions el gate bloquea v2 y deja pasar v3, que es concisa, cita la fuente y conserva todos los datos.</p><p>En el chatbot real funciona igual, con los jueces LLM:</p><pre>PROMPT_VERSION=prompts:/asistente_rrhh@v2_resumido_directo \<br>  python app/run_eval.py --baseline prompts:/asistente_rrhh@production<br>pytest tests/test_run_eval.py -v</pre><p>En la UI, en <strong>Evaluation runs</strong> seleccionas los dos runs, fijas la línea base y filtras los ejemplos en regresión para ver la diferencia de respuesta y de pasos de la traza.</p><blockquote>Un detalle que me costó encontrar: las filas se emparejan por el ID del dataset o, si no hay, por el hash de las entradas de la traza raíz. Si la versión del agente es un argumento de la función trazada, ninguna fila de v1 encuentra su par en v2 y todo sale como insufficient_pairs.</blockquote><h3>La misma historia con GPT-4o</h3><p>Corrí el chatbot real (GPT-4o, evaluado por GPT-4o-mini) con el dataset de 10 preguntas, en español y en inglés, comparando el prompt v2 (resumido y directo) contra el v1 de producción. En español la v2 cuesta la mitad y empata en correctness. Si solo miras el promedio, no pasó nada.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Na4yd_gre7u2ad_plNEMvw.png" /><figcaption>Corrida en español: la v2 empata en correctness y cuesta la mitad.</figcaption></figure><p>El empate engaña. paired_rows muestra que la v2 cambió qué preguntas acierta: arregla una y rompe otra.</p><ul><li><strong>Mejora:</strong> «¿Qué responsabilidades tiene un analista de datos según el role library?». La biblioteca de roles no tiene ese rol. La v1 respondía «Según el documento interno…» con información que no estaba en los documentos; la v2 dice que no tiene información.</li><li><strong>Empeora:</strong> «¿Qué cubre el plan Northwind Health Plus?». La v2 resume tanto que omite los servicios de emergencia, uno de los datos que distingue a Health Plus de Standard.</li></ul><p>Con un cambio a favor y uno en contra, McNemar da p = 1.0 y un gate que solo mira la significancia deja pasar a la v2. Por eso el gate del chatbot ahora también falla si alguna pregunta empeora en correctness (paired_rows), la misma regla que ya usaba el laboratorio. Repetí la corrida y el resultado se mantuvo: la misma pregunta, el mismo fallo.</p><p>En GitHub Actions pasa lo mismo: con la v2 como candidata y producción como línea base, el umbral y la prueba estadística pasan, y el paso del quality gate falla por esa pregunta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*3V81_zIilNsaoA68OtAm6g.png" /><figcaption>El quality gate en GitHub Actions: el umbral y la prueba estadística pasan, la regla por pregunta falla.</figcaption></figure><p>La pantalla de comparación de MLflow 3.18 lo muestra todo en un solo lugar: tokens, costo, cada juez lado a lado, el resumen automático y <strong>Compare traces row by row</strong> para leer las dos respuestas de cada pregunta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ebw-6Y58yJQhZAmcM1LyLQ.png" /><figcaption>Comparación de evaluaciones en MLflow 3.18: tokens, costo, cada juez lado a lado y un resumen automático.</figcaption></figure><p>Y la comparación fila por fila muestra la diferencia exacta entre las dos respuestas a la pregunta que empeoró:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*luQpfOalsuP5HP1aVeBGxg.png" /><figcaption>Compare traces row by row: la v2 omite los servicios de emergencia de Health Plus.</figcaption></figure><p>En inglés aparecen otros matices:</p><ul><li>En la primera corrida, correctness bajó de 90% a 70% (p = 0.5) y el gate por pregunta frenó a la v2. Una de las dos preguntas era un error de mi dataset (lo explico abajo). La otra era real: ante el rol de analista de datos, la v1 explicaba que el role library no incluye ese rol y la v2 solo decía «I do not have enough information».</li><li>En la corrida final, con el dataset corregido, las dos versiones quedaron en 80% y el gate pasó. Pero la v2 respondió «I do not have enough information» a «What does the PerksPlus program include?», que sí tiene respuesta. Correctness no lo marcó como regresión; relevance_to_query sí (1 → 0). Como el gate solo vigila correctness, la dejó pasar.</li><li>La línea base pasó de 90% a 80% entre una corrida y otra sin que cambiara nada. Con 10 preguntas cada una vale 10 puntos, y el no determinismo del modelo y del juez basta para mover una.</li></ul><p>De aquí salen dos decisiones de diseño: qué jueces son guardianes y cuántas filas se toleran. Agregar relevance_to_query atraparía la abstención de PerksPlus, pero ese juez también castiga las abstenciones correctas: a la pregunta de la licencia de maternidad, que no tiene respuesta en los documentos, le puso 0 a «No tengo información suficiente». Y antes de usar GATE_MAX_REGRESSED_ROWS=0, conviene correr la línea base dos veces para ver cuánto varía sola.</p><h3>Revisa el dataset antes de culpar al modelo</h3><p>Las respuestas esperadas las había escrito con ayuda de IA. Al revisarlas contra los PDFs encontré varias que pedían más de lo que preguntaba la pregunta. «¿PerksPlus cubre clases de surf?» esperaba que además se nombraran esquí, buceo y equitación, y «¿Qué medicamentos cubre Northwind Standard?» esperaba la comparación con Health Plus. Una respuesta breve y correcta reprobaba correctness, y en mi primer análisis conté esas fallas como regresiones del modelo.</p><p>Ahora cada pregunta del dataset trae source (archivo y página) y, cuando dos documentos se contradicen, una note. Y se contradicen: el resumen de beneficios dice que Northwind Standard no cubre salud mental, y el documento detallado del plan dice que sí la cubre (aunque no el abuso de sustancias). Según la página que traiga el retriever, el bot responde distinto sin inventar nada.</p><p>Los jueces tampoco lo ven todo. En «¿Qué no cubre Northwind Standard?», las dos versiones afirmaron que Standard no cubre empastes dentales, algo que el PDF no dice, y ningún juez lo marcó. Los jueces reducen la revisión manual, pero no la reemplazan.</p><h3>2. Evaluación online con scorers de código</h3><p>La evaluación offline revisa un dataset fijo; la online revisa cada conversación nueva. En 3.18 registras un scorer de Python, llamas .start() y el servidor evalúa las trazas que van llegando, ejecutando tu código en un contenedor aislado. Es experimental y requiere un servidor MLflow self-hosted.</p><pre>from mlflow.genai.scorers import scorer, ScorerSamplingConfig<br><br>@scorer<br>def no_personal_data(outputs) -&gt; bool:<br>    import re   # los imports van DENTRO: el contenedor solo recibe el código de la función<br>    return not re.search(r&quot;[\w.+-]+@[\w-]+\.[\w.]+|\+?\d[\d\s-]{7,}\d&quot;, str(outputs))<br>no_personal_data.register(name=&quot;no_personal_data&quot;, experiment_id=exp_id).start(<br>    experiment_id=exp_id,<br>    sampling_config=ScorerSamplingConfig(<br>        sample_rate=1.0,<br>        filter_string=&quot;tags.environment = &#39;production&#39;&quot;,<br>    ),<br>)</pre><p>También hay scorers de sesión: reciben session, la lista de trazas de una conversación, y dan un veredicto sobre toda ella. En el repo, conversation_without_abstentions marca las conversaciones en las que el asistente tuvo que decir que no tenía información.</p><p>En el chatbot real lo activas con python -m app.monitoring, y en el laboratorio con step3_online.py. Estas son las reglas que me encontré al probarlo:</p><ul><li>Solo funciones @scorer definidas con def: sin lambdas, sin async y sin la clase Scorer.</li><li>El servidor ejecuta el código fuente de la función sin red, así que los imports van dentro del cuerpo y no puedes usar variables del módulo.</li><li>La evaluación automática no acepta scorers con expectations: en producción no hay respuesta esperada.</li><li>El servidor necesita base de datos, Docker local, una sola réplica y MLFLOW_SERVER_ENABLE_CUSTOM_SCORERS=true, también en el cliente.</li><li>Si defines MLFLOW_JOB_IMAGE con una imagen que no existe localmente, el servidor intenta descargarla y se detiene. Sin esa variable, MLflow construye su propia imagen mínima al arrancar.</li></ul><p>El script labs/mlflow_318/start_server.sh deja el servidor configurado con todo esto.</p><h3>3. Detección automática de issues</h3><p>Revisar trazas una por una no escala. La detección automática de issues usa un LLM para leer las trazas de un experimento y agrupar las fallas que se repiten: respuestas incorrectas, herramientas que fallan, respuestas lentas y costos inesperados. Cada issue trae su descripción, su severidad y las trazas que lo respaldan.</p><p>Se lanza desde la UI: pestaña <strong>Issues</strong> → <em>Run issue detection</em>, eliges el proveedor (OpenAI, Anthropic, Gemini o un endpoint del AI Gateway), revisas las trazas y el costo estimado, y ejecutas. También puedes programarla diaria o semanal con un filtro como environment = production. Para que funcione, el servidor necesita base de datos y ejecución de jobs en segundo plano.</p><p>Para tener algo que encontrar, el agente simulado v1 del laboratorio trae cinco fallas sembradas:</p><ul><li>Inventa políticas en preguntas fuera de alcance → <strong>Respuesta incorrecta</strong></li><li>La herramienta check_vacation_balance siempre falla por timeout → <strong>Ejecución</strong></li><li>Tarda 1.5 s más en las preguntas de comparación → <strong>Latencia</strong></li><li>Envía todo el corpus al LLM (unas 20 veces más tokens de entrada que v2) → <strong>Costo</strong></li><li>Repite el correo o el teléfono que escribió el usuario → <strong>Seguridad</strong></li></ul><p>Después de la detección, la API de issues permite trabajarlos desde código:</p><pre>issues = mlflow.genai.search_issues(experiment_id=exp_id, filter_string=&quot;status = &#39;pending&#39;&quot;)<br>evidencia = mlflow.search_traces(locations=[exp_id], filter_string=f&quot;issue.id = &#39;{issue.issue_id}&#39;&quot;)<br>mlflow.genai.update_issue(issue.issue_id, status=IssueStatus.RESOLVED, experiment_id=exp_id)</pre><p>step4_issues.py usa esa API para exportar issues_for_agent.md, un reporte con cada issue y sus trazas de ejemplo listo para pegar en tu agente de código. También crea issues a partir de un scorer online que falla (--from-scorer cites_source) y enlaza las trazas como evidencia con IssueReference, así el monitoreo y la detección terminan en el mismo lugar.</p><h3>4. Agent Skill Registry</h3><p>Un skill es una carpeta con un SKILL.md (instrucciones y un frontmatter con name y description) que un agente de código carga cuando la tarea lo requiere. El Skill Registry de MLflow 3.18 les da un lugar compartido: versiones, alias y búsqueda, para que todo el equipo instale la misma versión en Claude Code, Codex o Cursor. Es experimental.</p><p>Para el repo escribí genaiops-hr-triage, un skill que le enseña al agente el flujo que quiero que siga ante un issue:</p><ol><li>Leer el issue y sus trazas de evidencia.</li><li>Ubicar la causa según el span que falla: retriever, herramienta, prompt o contexto enviado al LLM.</li><li>Hacer el cambio mínimo, con una versión nueva del prompt en lugar de editar la de producción.</li><li>Demostrar la corrección con compare_evaluations y el quality gate antes de cerrar el issue.</li><li>Pedir confirmación humana antes de promover a @production.</li></ol><p>Registrarlo, fijarle un alias e instalarlo son cuatro llamadas:</p><pre>version = mlflow.genai.register_skill(source=&quot;labs/mlflow_318/skills/genaiops-hr-triage&quot;)<br>MlflowClient().set_skill_alias(name=&quot;genaiops-hr-triage&quot;, alias=&quot;production&quot;,<br>                               version=int(version.version))<br>mlflow.genai.search_skills(filter_string=&quot;status = &#39;active&#39;&quot;)<br>mlflow.genai.pull(&quot;skills:/genaiops-hr-triage@production&quot;,<br>                  destination=&quot;.claude/skills/genaiops-hr-triage&quot;)</pre><p>O con la CLI:</p><pre>mlflow skills register --source labs/mlflow_318/skills/genaiops-hr-triage<br>mlflow skills set-alias skills:/genaiops-hr-triage --alias production --version 1<br>mlflow skills pull skills:/genaiops-hr-triage@production -d .claude/skills/genaiops-hr-triage</pre><p>El alias es lo valioso: el equipo instala @production y no un número de versión, igual que con los prompts. Dos cosas a tener en cuenta: cada register_skill crea una versión nueva aunque el contenido no cambie, y pull exige una carpeta de destino vacía o inexistente.</p><h3>El ciclo completo, en 10 minutos</h3><p>Las cuatro funciones se conectan en un ciclo: el tráfico alimenta la detección de issues y el monitoreo, el skill guía la corrección, la comparación la demuestra y la versión corregida vuelve a producción.</p><p>La nueva página <strong>Overview</strong> de cada experimento en MLflow 3.18 muestra el mismo ciclo en cuatro pasos: trazar, analizar (detección de issues), evaluar (con la regresión ya marcada) y monitorear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*4GkPRWdpYllzcpvE9Yx9KA.png" /><figcaption>La nueva página Overview de un experimento en MLflow 3.18.</figcaption></figure><p>El laboratorio usa un agente simulado con tres versiones (v1 con fallas, v2 que mejora el promedio pero pierde datos, v3 corregida), así que los pasos 1, 2, 4 y 5 corren sin API key:</p><pre>git clone https://github.com/darkanita/GenAIOps_Pycon2025 &amp;&amp; cd GenAIOps_Pycon2025<br>pip install -r labs/mlflow_318/requirements.txt<br>export APP_LANG=es                                     # todo el laboratorio en español<br>./labs/mlflow_318/start_server.sh                      # MLflow en http://localhost:5000<br><br>python labs/mlflow_318/step1_traffic.py                # 38 trazas de v1 en sesiones<br>python labs/mlflow_318/step2_compare.py                # v1 vs v2: aparecen las 7 regresiones<br>python labs/mlflow_318/step2_compare.py --candidate v3 --gate   # pasa el gate<br>python labs/mlflow_318/step3_online.py                 # scorers online (necesita Docker)<br>python labs/mlflow_318/step4_issues.py                 # después de la detección en la UI<br>python labs/mlflow_318/step5_skills.py                 # registra e instala el skill</pre><p>Los pasos 1 y 2 aceptan --agent rag para usar el chatbot real en lugar del simulado. La detección de issues es lo único que necesita una API key de un LLM.</p><h3>Lo que me llevo</h3><ul><li><strong>El promedio esconde regresiones.</strong> Compara siempre contra una línea base y mira las preguntas que empeoraron, no solo la media.</li><li><strong>Los scorers de código son gratis y deterministas.</strong> Concisión, datos personales o errores en la traza no necesitan un juez LLM, y los mismos scorers sirven offline y online.</li><li><strong>Las sesiones cambian lo que puedes ver.</strong> Con session_id en la traza, la conversación completa se vuelve evaluable.</li><li><strong>El dataset necesita tamaño.</strong> Con menos de 6 pares, compare_evaluations responde insufficient_pairs; por eso el dataset del repo pasó de 5 a 10 preguntas. Aun así, 10 es poco: con GPT-4o la v2 empató en correctness (p = 1.0) y empeoró una pregunta clave, así que el gate también revisa pregunta por pregunta.</li><li><strong>Revisa el dataset y a los jueces.</strong> Una respuesta esperada mal escrita convierte una respuesta correcta en una regresión, y los jueces fallan en los casos límite. Lee las filas que el gate marca antes de decidir.</li><li><strong>El agente de código también necesita un proceso.</strong> Un skill versionado hace que la corrección de un issue siga los mismos pasos para todo el equipo, y que termine con evidencia.</li></ul><p>Limitaciones: el Skill Registry y la evaluación online con scorers de código son experimentales, y esta última requiere un servidor self-hosted con Docker. La detección de issues se lanza desde la UI y consume tokens del LLM que elijas.</p><p>Si lo pruebas, cuéntame qué issues encuentra en tu agente. El repo está abierto a issues y pull requests.</p><p><strong>Enlaces</strong></p><ul><li>Repo: <a href="https://github.com/darkanita/GenAIOps_Pycon2025">darkanita/GenAIOps_Pycon2025</a></li><li>Laboratorio: <a href="https://github.com/darkanita/GenAIOps_Pycon2025/tree/main/labs/mlflow_318">labs/mlflow_318</a></li><li><a href="https://mlflow.org/releases/">Notas de la versión de MLflow</a></li><li>Docs: <a href="https://mlflow.org/docs/latest/genai/eval-monitor/ai-insights/detect-issues/">Detección de issues</a> · <a href="https://mlflow.org/docs/latest/genai/eval-monitor/comparing-evaluation-runs/">Comparar evaluaciones</a> · <a href="https://mlflow.org/docs/latest/self-hosting/job-containers/">Job containers</a> · <a href="https://mlflow.org/docs/latest/genai/skill-registry/">Skill Registry</a></li></ul><p><em>ENG Read the English version: </em><a href="https://medium.com/@darkanita/genaiops-with-mlflow-3-18-from-production-traffic-to-a-quality-gate-a417feacfbc1"><em>GenAIOps with MLflow 3.18</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=249d970853c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GenAIOps with MLflow 3.18: from production traffic to a quality gate]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@darkanita/genaiops-with-mlflow-3-18-from-production-traffic-to-a-quality-gate-a417feacfbc1?source=rss-b4c0d1550b69------2"><img src="https://cdn-images-1.medium.com/max/1400/1*87_2d4CdOsCGsF5TyzcXWA.png" width="1400"></a></p><p class="medium-feed-snippet">&#x1F1EA;&#x1F1F8; Este art&#xED;culo tambi&#xE9;n est&#xE1; en espa&#xF1;ol: GenAIOps con MLflow 3.18: del tr&#xE1;fico de producci&#xF3;n al quality gate</p><p class="medium-feed-link"><a href="https://medium.com/@darkanita/genaiops-with-mlflow-3-18-from-production-traffic-to-a-quality-gate-a417feacfbc1?source=rss-b4c0d1550b69------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@darkanita/genaiops-with-mlflow-3-18-from-production-traffic-to-a-quality-gate-a417feacfbc1?source=rss-b4c0d1550b69------2</link>
            <guid isPermaLink="false">https://medium.com/p/a417feacfbc1</guid>
            <category><![CDATA[genaiops]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[mlflow]]></category>
            <dc:creator><![CDATA[Ana Lopez Moreno]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 18:30:56 GMT</pubDate>
            <atom:updated>2026-11-25T23:17:53.172Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Databricks Certified Machine Learning Professional: my exam experience and the topics that will…]]></title>
            <link>https://medium.com/@darkanita/databricks-certified-machine-learning-professional-my-exam-experience-and-the-topics-that-will-a5f0aff18ffc?source=rss-b4c0d1550b69------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5f0aff18ffc</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ana Lopez Moreno]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 01:17:32 GMT</pubDate>
            <atom:updated>2026-11-11T01:49:11.919Z</atom:updated>
            <content:encoded><![CDATA[<h3>Databricks Certified Machine Learning Professional: my exam experience and the topics that will help you prepare</h3><h4>Data drift, training at scale, MLflow, Feature Store and MLOps: the scenarios that kept repeating on the exam and what to master for each one.</h4><h3>Why I’m writing this</h3><p>I recently took the Databricks Certified Machine Learning Professional exam to renew my certification, which had expired in June. Two years ago the exam was heavily focused on MLflow. This time it felt much more about data drift and about improving training on big data, with many churn and recommendation scenarios.</p><p>I want to write down the topics that came up most while they are still fresh, as a map for anyone preparing. This is not a list of exam questions: it is the kinds of scenarios that kept repeating, what you need to master for each one, and links to the official documentation to study it.</p><h3>What the exam looks like</h3><p>The exam has 59 scored multiple-choice questions in 120 minutes, in English only, with no test aids. There can be up to 10 extra unscored questions that are not identified, and the extra time is already included. It costs USD 200 and the certification is valid for 2 years. I got 62 questions in total, which fits 59 scored plus a few unscored ones, so treat every question as if it counts.</p><p>The official exam guide splits the content into three sections:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pJz3QgTM6u7oup8U2jU3hg.png" /></figure><p>The result is based on your total score, not section by section, and Databricks does not publish the passing score.</p><p>Watch out for renamed products: Lakehouse Monitoring is now <strong>data profiling</strong> (part of <em>data quality monitoring</em>), and Databricks Asset Bundles are now <strong>Declarative Automation Bundles</strong>. Courses and questions may use either name.</p><p>Study links: <a href="https://www.databricks.com/sites/default/files/2026-10/databricks-certified-machine-learning-professional-exam-guide-august.pdf">Exam guide</a></p><h3>The topics that came up most</h3><p>Almost every question was a scenario: a company, a problem, and four ways to solve it. Very few asked for a plain definition. Many answers came in pairs of nearly identical options where only one detail changed.</p><h3>1. Deployments with fast rollback and no service impact</h3><p>This was the most repeated theme: releasing a new model version while being able to roll back quickly without taking the service down.</p><ul><li><strong>Blue-green:</strong> two identical environments; traffic moves from one to the other and the old one stays ready for rollback.</li><li><strong>Canary:</strong> the new version gets a small share of traffic that grows over time, which limits the blast radius in high-traffic applications.</li><li><strong>Shadow and A/B testing:</strong> shadow receives traffic but its predictions are not used; A/B splits users randomly and decides with statistics.</li><li><strong>In Model Serving:</strong> one endpoint can serve several versions with a traffic split, and an endpoint update is zero-downtime because the old configuration keeps serving until the new one is ready.</li><li><strong>In Unity Catalog:</strong> aliases such as @champion let you roll back by pointing the alias to the previous version.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/model-serving/serve-multiple-models-to-serving-endpoint">Serve multiple models to a model serving endpoint</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/mlops/mlops-workflow">MLOps workflows on Azure Databricks</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/manage-model-lifecycle/">Manage model lifecycle in Unity Catalog</a></p><h3>2. A scikit-learn model when the dataset grows to 700 GB</h3><p>The scenario: a model trained with scikit-learn, but the data no longer fits on one node. You need to know what scales and what does not.</p><ul><li>scikit-learn is single-node and does not distribute training by itself. It runs on the driver, so adding workers does not speed it up.</li><li><strong>Spark ML</strong> trains one model over distributed data (data parallel).</li><li>If the problem is <strong>one model per group</strong> (store, region, device) and each group fits in memory, groupBy().applyInPandas() trains many single-node models in parallel. This came up a lot: &quot;one model per store&quot;, &quot;one model per region&quot;. The usual traps are mapInPandas (no guarantee that a group arrives whole) and a single global model with the store as a feature.</li><li>For batch inference, mlflow.pyfunc.spark_udf distributes a single-node model over a DataFrame.</li><li><strong>Vertical scaling</strong> (a bigger machine) is simplest when the model is single-node and the data still fits; <strong>horizontal scaling</strong> (more nodes) only helps if training is distributed.</li><li>Know the pandas APIs on Spark: grouped map (applyInPandas), map (mapInPandas), cogrouped map (cogroup().applyInPandas()), pandas UDFs (the Iterator variant loads a model once for all batches), and the pandas API on Spark (pyspark.pandas). They all use Apache Arrow, which is why they are much faster than row-at-a-time Python UDFs.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/pandas/pandas-function-apis">pandas function APIs</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/udf/">What are UDFs?</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/train-model/distributed-training/">Distributed training</a></p><h3>3. Optuna and Ray</h3><ul><li><strong>Optuna:</strong> the default sampler is <strong>TPE</strong> (Tree-structured Parzen Estimator), a Bayesian method. Pruning needs trial.report() and trial.should_prune(). Multi-node parallelism needs shared storage. MLflowCallback logs every trial to MLflow. On Databricks, MLflow 3 adds MlflowStorage (the MLflow tracking server as shared storage) and MlflowSparkStudy (trials spread across Spark executors), which default to TPESampler and MedianPruner.</li><li><strong>Ray Tune:</strong> without a scheduler it uses FIFO, which never stops bad trials early; ASHA does. On Databricks, Ray runs on top of the Spark cluster with setup_ray_cluster() and is released with shutdown_ray_cluster(). Ray Serve is not recommended on Databricks; use Model Serving.</li><li><strong>Spark vs Ray:</strong> Spark for large-scale data processing; Ray for flexible Python compute such as tuning, deep learning or reinforcement learning.</li><li>Hyperopt is no longer maintained and is not included in Databricks Runtime ML after 16.4 LTS ML. Databricks recommends Optuna or Ray Tune.</li><li>A tuning scenario that came up: a binary churn model where you had to pick the right evaluator. BinaryClassificationEvaluator (areaUnderROC or areaUnderPR) is for binary classification; RegressionEvaluator is for continuous targets even if the label is 0 or 1. With a rare positive class, areaUnderPR reflects performance better.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/automl-hyperparam-tuning/optuna">Hyperparameter tuning with Optuna</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/automl-hyperparam-tuning/">Hyperparameter tuning overview</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/ray/ray-create">Create and connect to Ray clusters</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/ray/spark-ray-overview">When to use Spark vs. Ray</a></p><h3>4. Data drift and a lot of data profiling (Lakehouse Monitoring)</h3><p>This was the densest part.</p><ul><li><strong>Types of drift:</strong> data drift (inputs change), concept drift (the relationship between features and target changes), model quality drift and bias drift.</li><li><strong>Profile types:</strong> Snapshot (the whole table on each refresh), TimeSeries (data with a timestamp) and InferenceLog (predictions with a model ID and, optionally, labels).</li><li><strong>Output tables:</strong> a profile metrics table and a drift metrics table, plus an auto-generated dashboard.</li><li><strong>drift_type:</strong> BASELINE compares against the baseline table (for example, training data); CONSECUTIVE compares each window with the previous one. granularities sets the window size.</li><li><strong>Slicing:</strong> slicing_exprs (for example [&#39;region&#39;]) computes metrics per segment. One scenario: drift detected only in certain regions. Filter the drift table by slice_key and slice_value, and if you have one model per region, retrain only the affected ones.</li><li><strong>Custom metrics:</strong> aggregate, derived or drift.</li><li><strong>Alerts:</strong> Databricks SQL alerts on the metric tables, which can trigger a retraining job.</li></ul><p><strong>InferenceLog</strong> came up several times, often as one of two near-identical answers next to TimeSeries. Pick InferenceLog when the table holds model predictions (a Model Serving inference table or the output of a batch scoring job) and you want model quality metrics on top of data drift. It needs problem_type (classification or regression), prediction_column, timestamp_column, model_id_column and granularities; label_column is optional. Accuracy, F1, RMSE or R² are only computed when labels are present, so if ground truth arrives later you join it into the table. ROC AUC and log loss also need a probability column. Metrics are computed per model ID, which lets you compare two model versions side by side. Use TimeSeries when the table has a timestamp but no predictions, and Snapshot when there is no timestamp (up to 4 TB per table).</p><p>Which statistic applies to which feature type came up several times:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P4np4YL2BgdMJerkzs34dg.png" /></figure><p>Rule of thumb: tests (KS, chi-squared) tell you whether a change is statistically significant; distances (Wasserstein, PSI, JS, TV, L-infinity) tell you how big it is. On large volumes, tests flag tiny changes as significant, so look at a distance too. Note that in the Databricks drift metrics table, JS distance is computed for categorical columns only.</p><p>A scenario I remember: a model trained three months ago whose performance is dropping. First diagnose: use the inference table with labels to confirm the quality drop, and the drift metrics against the training baseline to see whether the inputs changed (data drift) or the relationship with the target changed (concept drift). Then retrain on recent data, ideally with a job triggered by an alert, and only replace the current model if the new one wins a champion/challenger comparison.</p><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/data-quality-monitoring/data-profiling/">Data profiling</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/data-quality-monitoring/data-profiling/monitor-output">Data profiling metric tables</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/data-quality-monitoring/data-profiling/create-monitor-api">Create a data profile using the API</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/data-quality-monitoring/data-profiling/custom-metrics">Custom metrics</a></p><h3>5. MLflow</h3><ul><li>Nested runs (start_run(nested=True)) to group trials or steps under a parent run.</li><li>Registering in Unity Catalog: three-level name, a required signature, and aliases instead of stages.</li><li>Custom models with PythonModel: artifacts are loaded in load_context() through context.artifacts.</li><li><strong>Several data scientists testing models for the same project with no traceability.</strong> By default each notebook logs to its own notebook experiment, so results end up scattered. The good practice is a shared workspace experiment for the project (for example mlflow.set_experiment(&#39;/Shared/&lt;project&gt;&#39;)), with tags (author, model type) on every run, comparing runs in the UI or with mlflow.search_runs(), and registering the best one in Unity Catalog.</li><li><strong>Code to log parameters, metrics and artifacts.</strong> Know which function goes with which kind of data:</li></ul><pre>with mlflow.start_run(run_name=&quot;rf_v2&quot;):<br>    mlflow.log_params({&quot;max_depth&quot;: 7, &quot;n_estimators&quot;: 200})   # run configuration<br>    mlflow.log_metric(&quot;rmse&quot;, rmse)                              # a number; supports step for history<br>    mlflow.log_figure(fig_roc, &quot;roc_curve.png&quot;)                  # matplotlib figure as an artifact<br>    mlflow.log_artifact(&quot;reports/feature_importance.csv&quot;)        # any local file<br>    mlflow.set_tag(&quot;author&quot;, &quot;data-science-team&quot;)</pre><p>Parameters are configuration, metrics are numbers that can have a history by step, and artifacts are files. A ROC curve image is an artifact (via log_artifact or log_figure); the AUC value is a metric.</p><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/mlflow/experiments">Organize training runs with MLflow experiments</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/mlflow/tracking">Track model development using MLflow</a></p><h3>6. Compute: GPUs for one team, varied dataset sizes for others</h3><p>The scenario: one data science team needs GPUs for deep learning while other teams work with datasets of very different sizes. The idea is not to use one configuration for everyone.</p><ul><li>GPU-enabled compute with the ML runtime only for deep learning workloads. Databricks recommends GPUs only for workloads with GPU-accelerated libraries.</li><li>CPU compute with autoscaling for teams whose data volume varies.</li><li>Compute policies to standardize and limit what each team can create (for example a GPU/ML policy and a smaller development policy).</li><li>Job compute for production instead of all-purpose compute running all day.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/compute/gpu">GPU-enabled compute</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/compute/cluster-config-best-practices">Classic compute configuration best practices</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/admin/clusters/policy-families">Default policies and policy families</a></p><h3>7. Isolated environments and deploy code</h3><ul><li><strong>Direct separation</strong> (one workspace per environment) is the recommended option: more secure, easier to audit, and it scales to many projects.</li><li><strong>Deploy code</strong> (the default recommendation): you promote code, and the production model is trained in production on production data. Only prod needs access to sensitive data.</li><li><strong>Deploy model</strong> makes sense when training is very expensive or hard to reproduce; <strong>hybrid</strong> deploys code to staging, trains there, and promotes the model to production.</li><li>Staging runs integration tests of the whole pipeline, and bundles define resources per environment with targets.</li><li><strong>Automating deployment to production:</strong> a CI/CD pipeline (GitHub Actions or Azure DevOps) that, on merge to the release branch, runs databricks bundle deploy -t prod and the training, validation and deployment jobs. The difference between continuous delivery and continuous deployment is whether a manual approval remains before production.</li><li><strong>Staging is less powerful than production:</strong> staging proves that the pipeline works end to end; it does not produce the final model. Test with data subsets, fewer training iterations and temporary endpoints, and train the production model in production with the same code.</li><li><strong>Triggering retraining:</strong> on a schedule, with a file arrival or table update trigger, from a SQL alert on monitoring metrics, through the API (run-now), or as a task inside another job. The typical job prepares features, trains, compares against the current model (champion/challenger), and only then updates the alias and the endpoint.</li><li><strong>Webhooks and newer pieces:</strong> job notifications can go to webhooks (as well as email, Slack, Teams or PagerDuty). In Unity Catalog, <strong>model update triggers</strong> start a job when a model is created, a version is ready or an alias is set, and <strong>MLflow 3 deployment jobs</strong> manage each version’s lifecycle with evaluation and approval. They replace the webhooks of the old workspace model registry.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/mlops/deployment-patterns">Model deployment patterns</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/mlops/mlops-stacks">MLOps Stacks</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/flows">CI/CD workflows</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/resources">Bundle resources</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/jobs/triggers">Job schedules and triggers (including model update triggers)</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/jobs/notifications">Job notifications</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/mlflow/deployment-job">MLflow 3 deployment jobs</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/testing">Unit testing for notebooks</a></p><h3>8. How to guarantee library versions across environments</h3><p>This was one of the most repeated concerns: with deploy code and one workspace per environment, the model is retrained in each one, so dev, staging and prod must run exactly the same library versions. Some options were Terraform, init scripts and requirements files, so be clear on what each one solves:</p><ul><li><strong>Bundles and Terraform</strong> are infrastructure as code: they define jobs, endpoints and other resources reproducibly across environments. For ML assets, bundles are the native tool.</li><li><strong>Init scripts and cluster libraries</strong> install packages when compute starts, so they affect everything on that cluster. Databricks best practices recommend avoiding init scripts and compute-scoped libraries where possible.</li><li><strong>Pinned versions in the repo:</strong> a requirements.txt with exact versions (==) versioned in Git with the code, so code and dependencies are promoted together.</li><li><strong>The same compute in every environment:</strong> the bundle defines the Databricks Runtime ML version and the libraries (or the serverless environment) for each job; targets only change what must change, such as the workspace or catalog. Compute policies stop people from creating clusters with a different runtime.</li><li><strong>The registered model carries its environment:</strong> MLflow infers dependencies and stores a requirements.txt inside the model; extra_pip_requirements adds missing ones with exact versions, and code_paths adds your own modules. Model Serving builds the same environment in any workspace. On ML runtimes, pin mlflow==&lt;version&gt;, because they ship mlflow-skinny and Model Serving needs full mlflow.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/mlflow/log-model-dependencies">Log model dependencies</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/model-serving/custom-models">Custom models overview</a></p><h3>9. Code snippets: metrics and data parallel vs model parallel</h3><p>Several questions showed training code with its metrics and asked how to improve it.</p><ul><li><strong>Data parallel:</strong> every GPU or node holds a full copy of the model and processes part of the data. Use it when the model fits in memory but there is a lot of data or training is slow.</li><li><strong>Model parallel:</strong> the model is split across devices (by layers, by tensors, or by sharding parameters as in FSDP). Use it when the model does not fit in one GPU’s memory even with a small batch.</li><li><strong>On Databricks:</strong> TorchDistributor runs distributed PyTorch training on the Spark cluster, Spark ML trains data parallel natively, and the <strong>DeepSpeed distributor</strong> (built on TorchDistributor) targets large models with limited GPU memory, with optimized memory usage and pipeline parallelism. Databricks recommends training on a single machine when possible and going distributed only if the model or data do not fit.</li><li><strong>Batch inference across nodes</strong> is the other side: the full model is copied to each executor and each one predicts on its partitions, with mlflow.pyfunc.spark_udf or an Iterator pandas UDF that loads the model once per process.</li><li><strong>Reading the metrics:</strong> if training loss goes down while validation loss goes up, it is overfitting, not a scaling problem. A GPU out-of-memory error points to model parallelism or a smaller batch.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/train-model/distributed-training/spark-pytorch-distributor">Distributed training with TorchDistributor</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/train-model/distributed-training/deepspeed">DeepSpeed distributor</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/train-model/dl-best-practices">Best practices for deep learning</a></p><h3>10. Many time series scenarios</h3><ul><li><strong>Many series at once</strong> (per store, product or sensor): one model per series with groupBy().applyInPandas(), trained in parallel.</li><li><strong>Split by time, not at random.</strong> A randomSplit mixes past and future and leaks information; train on data before a cutoff date and evaluate on data after it.</li><li><strong>Leak-free features:</strong> time series feature tables with timestamp_lookup_key, so each row gets the feature value that was valid at its timestamp.</li><li><strong>Monitoring:</strong> the TimeSeries profile groups metrics into windows by granularities, and BASELINE or CONSECUTIVE set what each window is compared against.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/feature-store/time-series">Point-in-time feature joins</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/data-quality-monitoring/data-profiling/">Data profiling</a></p><h3>11. Many recommendation scenarios</h3><ul><li><strong>Spark ML ALS</strong> is the collaborative filtering algorithm: configure userCol, itemCol and ratingCol; key hyperparameters are rank, maxIter and regParam.</li><li><strong>Implicit feedback</strong> (clicks, views, purchases instead of ratings): implicitPrefs=True.</li><li><strong>Cold start:</strong> new users or items produce NaN predictions; coldStartStrategy=&#39;drop&#39; removes them so evaluation does not return NaN.</li><li><strong>Generating recommendations:</strong> recommendForAllUsers(k) and recommendForItemSubset(...) produce a top-k in batch, usually written to a Delta table for serving.</li><li><strong>Evaluation:</strong> with explicit ratings, RMSE with RegressionEvaluator.</li><li><strong>Market basket:</strong> FPGrowth finds items bought together, and PrefixSpan finds sequential patterns.</li><li><strong>A scenario I remember:</strong> a recommendation model that had to use what the customer currently has in the basket. The basket is only known at request time, so it comes in as a request input or an on-demand feature, with the same logic in training and serving; for training, historical baskets become features.</li></ul><p>Study links: <a href="https://spark.apache.org/docs/latest/ml-collaborative-filtering.html">Collaborative filtering (Spark docs)</a></p><h3>12. Feature Store</h3><ul><li><strong>Feature tables in Unity Catalog</strong> are Delta tables with a primary key. Create them with FeatureEngineeringClient().create_table() and update them with write_table(), which merges and also accepts streaming DataFrames for real-time features.</li><li><strong>Training sets:</strong> FeatureLookup (table, lookup_key, features) plus fe.create_training_set(df, feature_lookups, label) and then load_df().</li><li><strong>Point-in-time correctness:</strong> a time series feature table (time column in the primary key) and timestamp_lookup_key in the FeatureLookup prevent using future values.</li><li><strong>Packaging the model with its features:</strong> fe.log_model(..., training_set=...) records which features it uses. Then fe.score_batch() looks them up for batch inference, and in Model Serving the client only sends the keys.</li><li><strong>Low latency:</strong> features are published to an online store so endpoints can read them in milliseconds.</li><li><strong>On-demand features:</strong> a Python UDF in Unity Catalog, added with FeatureFunction, is computed at request time with the same logic as in training.</li><li><strong>Feature serving:</strong> you can also expose features through an endpoint for applications that need them directly.</li><li><strong>Churn scenarios where </strong><strong>customer_id mattered:</strong> its role is to be the lookup key, as the feature table&#39;s primary key and the FeatureLookup&#39;s lookup_key. It should not go into the model as a feature, because an identifier predicts nothing and invites overfitting; that is what exclude_columns in create_training_set is for.</li><li>Newer docs also recommend <strong>Feature Views</strong> for new projects, where Databricks manages the feature pipelines.</li></ul><p>Study links: <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/feature-store/">Databricks Feature Store</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/feature-store/train-models-with-feature-store">Train models with feature tables</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/feature-store/on-demand-features">On-demand feature computation</a> · <a href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/feature-store/feature-function-serving">Feature Serving endpoints</a></p><h3>13. Spark ML basics they still test</h3><ul><li><strong>Predicting after tuning.</strong> CrossValidator(...).fit(train_df) returns a CrossValidatorModel, and Spark refits the best parameters on the whole training set. To predict on a DataFrame, use cvModel.transform(test_df). In Spark ML, predictions on DataFrames use transform(); predict() belongs to scikit-learn, and train() does not exist in pyspark.ml. It showed up as a distractor.</li><li><strong>The golden rule:</strong> Estimators call fit() and return a model; models and Transformers call transform().</li><li><strong>CrossValidator vs TrainValidationSplit:</strong> k folds vs a single split; TrainValidationSplit is cheaper but less reliable on small data. parallelism evaluates parameter settings in parallel.</li><li><strong>Normalizing between 0 and 1:</strong> MinMaxScaler (default range [0, 1]) works on a vector column, so it goes after VectorAssembler. The traps: StandardScaler gives mean 0 and standard deviation 1, MaxAbsScaler maps to [-1, 1], and Normalizer scales each row to unit norm, not each column.</li></ul><p>Study links: <a href="https://spark.apache.org/docs/latest/ml-tuning.html">ML Tuning (Spark docs)</a> · <a href="https://spark.apache.org/docs/latest/ml-features.html">Feature transformers (Spark docs)</a></p><h3>14. A surprise: RAG, but from the NLP side</h3><p>I got a few questions that mentioned RAG, but they were not about GenAIOps (evaluating, monitoring or deploying agents). They leaned toward NLP: serving your own LLM and processing text with Spark ML. Neither the exam guide nor the courses give these a topic of their own, but both courses touch on them briefly: Advanced Machine Learning Operations mentions serving custom LLMs with Model Serving, and Machine Learning at Scale uses a text pipeline as its Pipeline example and lists the MLflow flavors for LLMs. Worth reviewing:</p><ul><li><strong>The Spark ML text pipeline:</strong> the classic example is Tokenizer → HashingTF → LogisticRegression inside a Pipeline. Know which stages are Transformers and which are Estimators (in that chain only LogisticRegression is trained), and know the alternatives: StopWordsRemover, CountVectorizer with IDF, and Word2Vec.</li><li><strong>Serving your own LLM:</strong> log it with an MLflow flavor (transformers for Hugging Face models, langchain, or pyfunc for custom logic), register it in Unity Catalog with a signature, and deploy it to a Model Serving custom model endpoint, with GPU if the model needs it.</li></ul><h3>How I prepared</h3><p>I relied on the two courses the exam guide recommends in Databricks Academy and on practicing with scenario-style questions.</p><ul><li><strong>Machine Learning at Scale:</strong> Spark ML, tuning with Optuna and Ray, MLflow with Unity Catalog, inference with Spark, and pandas UDFs and Function APIs.</li><li><strong>Advanced Machine Learning Operations:</strong> environment architecture, deploy code, CI/CT/CD/CM, Lakeflow Jobs, testing, rollout strategies, monitoring and Asset Bundles.</li><li><strong>Practice rounds and a timed mock exam</strong> of 59 questions in English, with the same section weights as the real exam. The most useful part was reviewing every mistake and understanding why the other options were wrong.</li></ul><p>One caveat: the courses do not cover everything in the exam guide in depth. Advanced Feature Store (point-in-time lookups, on-demand features) and custom model serving need the documentation linked above. Some course slides also use older names and syntax (registry stages, the -e bundle flag, Lakehouse Monitoring), so check the current docs.</p><h3>Tips for exam day</h3><ol><li><strong>Prioritize MLOps and Model Development.</strong> Together they are 88% of the exam. The result is based on the total score, not section by section, so one weaker section will not sink you if the two big ones go well.</li><li><strong>Practice with scenarios, not definitions.</strong> Questions describe a situation and ask for the best option; several answers sound reasonable.</li><li><strong>Be wary of near-identical answer pairs.</strong> In many questions two options differ by a single detail: a parameter, the profile type, the order of steps, or where the model is trained. Discard the two that clearly do not apply, then compare the pair word by word against the question. That detail is usually what the question is testing.</li><li><strong>Find the keyword in the question.</strong> “Fast rollback”, “no service impact”, “high traffic”, “does not fit on one node”: they almost always point to a specific answer.</li><li><strong>Master data profiling (Lakehouse Monitoring).</strong> Profile types, metric tables, BASELINE vs CONSECUTIVE, which statistic fits which feature type, and alerts came up a lot.</li><li><strong>Understand why deploy code is recommended.</strong> Many environment questions are solved by knowing where the model is trained and who needs access to the data.</li><li><strong>Practice in English and with a timer.</strong> It is about 2 minutes per question; flag the uncertain ones and come back at the end.</li><li><strong>Check the exam guide two weeks before.</strong> Databricks updates it and product names change.</li></ol><h3>Wrap-up</h3><p>This certification does not reward memorizing APIs. It rewards knowing which decision to make when a model goes to production: how to deploy without breaking anything, how to scale when data grows, and how to notice that a model is degrading.</p><p>If you are preparing for it and have questions, leave them in the comments. And if you already took it, tell me which topics you got; I am curious whether anyone else got NLP-flavored RAG questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5f0aff18ffc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning to Engineer Generative AI Systems: A Hands-On Journey with Databricks (Part 1)]]></title>
            <link>https://medium.com/@darkanita/learning-to-engineer-generative-ai-systems-a-hands-on-journey-with-databricks-part-1-5b8f181c7861?source=rss-b4c0d1550b69------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b8f181c7861</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[mlflow]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[rag-architecture]]></category>
            <dc:creator><![CDATA[Ana Lopez Moreno]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 20:43:45 GMT</pubDate>
            <atom:updated>2025-12-24T20:43:45.083Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building the Foundation: RAG Systems from Scratch</h4><p>I’m currently studying to become a Databricks AI Engineer, and I wanted to document what I’m learning along the way. This isn’t an official course review — it’s my personal notes, struggles, and “aha!” moments as I work through the material.</p><p>My goal with this series is simple: help others understand what you actually need to know to build production-ready GenAI systems, not just toy demos.</p><p><strong>What I’ll cover in this series:</strong></p><ul><li><strong>Part 1</strong>: Understanding RAG and data preparation (this post)</li><li><strong>Part 2</strong>: Building compound AI systems and application architecture</li><li><strong>Part 3</strong>: Evaluation, governance, and safety</li><li><strong>Part 4</strong>: Deployment and monitoring in production</li></ul><p>Let’s dive in.</p><h3>The Big Picture: Why RAG Matters</h3><p>When I first started learning about GenAI engineering, I thought it was all about fine-tuning models and prompt engineering. But I quickly realized the real challenge is different: <strong>How do you make LLMs useful for real business problems?</strong></p><p>That’s where RAG (Retrieval-Augmented Generation) comes in, and it’s been the focus of my learning so far.</p><p>Here’s the problem RAG solves: LLMs are trained on static data. They don’t know about your company’s documents, your latest product updates, or anything that happened after their training cutoff. You could fine-tune them, but that’s expensive and needs to happen constantly.</p><p>RAG is the practical solution: you give the LLM relevant context on-the-fly by retrieving it from a knowledge base. Simple idea, complex execution.</p><h3>First Things First: Talking to AI Models</h3><p>Before building RAG systems, I needed to understand how to communicate effectively with LLMs. This isn’t as simple as just asking questions — there’s an art and science to it.</p><h4>The Anatomy of a Good Prompt</h4><p>Every effective prompt has four parts (and honestly, this framework changed how I think about AI interactions):</p><ol><li><strong>Instruction</strong>: What the model should do</li><li><strong>Context</strong>: Background or additional information to inform the response</li><li><strong>Input/Question</strong>: The specific query or data the model needs to process</li><li><strong>Output Type/Format</strong>: The desired structure or style of the response</li></ol><p>This framework has completely changed how I think about interacting with LLMs. It’s not just about asking questions — it’s about architecting the conversation.</p><h4>Techniques That Actually Work</h4><p>Several techniques stood out to me during this module:</p><p><strong>Zero-Shot and Few-Shot Prompting</strong><br> This blew my mind: you can guide a model without providing examples (zero-shot) or with just a handful of input-output examples (few-shot). It’s like teaching someone a task by showing them once or twice, and they get it.</p><p><strong>Prompt Chaining</strong><br> Instead of asking a model to do everything at once (which often fails), break complex tasks into a pipeline of focused prompts. Think of it like an assembly line for AI reasoning.</p><p><strong>Chain-of-Thought (CoT)</strong><br> This is my favorite: you encourage the model to think step-by-step. It’s like telling a student to “show their work” in math class. The results are dramatically better for reasoning tasks.</p><p><strong>My biggest takeaway</strong>: Use delimiters (like triple quotes or XML tags) to separate instructions from context. This simple trick makes a huge difference in output quality.</p><h4>Enter RAG: The Game Changer</h4><p>Here’s where things got really interesting. RAG addresses the fundamental limitation of LLMs: they only know what they were trained on.</p><p><strong>How RAG Works</strong>:</p><ul><li>Passing context to LMs helps with factual recall</li><li>Uses retrieval mechanisms (vector databases, search engines) to find relevant information</li><li>Augments prompts with retrieved context</li><li>Generates responses based on both the query and the retrieved information</li></ul><p>The key insight here is that RAG allows us to:</p><ul><li>Keep models current without retraining</li><li>Ground responses in factual data</li><li>Reduce hallucinations</li><li>Make LLMs practical for enterprise use cases</li></ul><h3>The Hard Part: Data Preparation</h3><p>If I had to summarize what I’ve learned so far in one sentence: <strong>RAG is 80% data engineering, 20% AI magic.</strong></p><p>This is where Databricks really shines, and also where most people struggle. You can have the best LLM in the world, but if your data pipeline is broken, your RAG system will be garbage.</p><h4>Why Data Prep Will Make or Break Your RAG System</h4><p>I learned this the hard way through examples. Poor data preparation causes:</p><ul><li>Poor quality model outputs</li><li>Information getting lost in the middle of long documents</li><li>Inefficient retrieval</li><li>Exposing sensitive data</li><li>Wrong embedding models for your use case</li></ul><h4>The RAG Pipeline: From Raw Data to Answers</h4><p>Here’s the complete flow I learned about:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHo3KgoWuxI_IgrP2dyI-g.png" /><figcaption>Figure 1: RAG Pipeline</figcaption></figure><p>Each stage is critical:</p><p><strong>1. Data Storage and Governance (Delta Lake)</strong></p><ul><li>Unified data management layer</li><li>Ensures data quality and consistency</li><li>Provides data lineage and version tracking</li><li>Enables feature publishing and drift monitoring</li></ul><p><strong>2. Unity Catalog (UC)</strong></p><ul><li>Governance, discovery, and access control for RAG applications</li><li>Unified visibility into data and AI assets</li><li>Single permission model for data and AI</li><li>Enables open data sharing</li></ul><p><strong>3. Featurization</strong></p><ul><li>Feature definition, discovery, and sharing</li><li>Feature publishing and drift monitoring</li></ul><h3>Chunking: The Art of Splitting Documents</h3><p>One of the most practical (and tricky) parts I learned about was chunking strategies. This is where you take your documents and split them into pieces that will be embedded and retrieved.</p><p><strong>The Typical Process</strong>:</p><ol><li>Split documents into chunks</li><li>Embed the chunks with a model</li><li>Store them in a vector store</li></ol><p><strong>The problem with naive chunking:</strong></p><ul><li>Chunks could be out of context</li><li>No overall logic or rigor in the chunking process</li></ul><p><strong>Better approaches (context-aware chunking):</strong></p><ul><li><strong>Chunk by sentence/paragraph/section</strong>: Maintains natural boundaries</li><li><strong>Leverage special punctuation</strong> (like \n for newlines)</li><li><strong>Include/inject metadata</strong>: Add tags and titles to provide context</li><li><strong>Fixed-size chunking</strong>: Divide by a specific number of tokens (simple but effective)</li></ul><p><strong>Here’s something important I learned</strong>: Chunking strategy depends entirely on your use case.</p><ul><li>For one sentence answers: embeddings should focus on specific meaning</li><li>For multiple paragraphs: embeddings should capture broader themes</li></ul><p>I also learned about helpful tools for splitting by headers using the chunkViz helper tool, which visualizes how your documents will be chunked.</p><p><strong>Pro tip</strong>: Chunk overlap is crucial — it defines how much consecutive chunks share. Without overlap, you risk losing important context that spans chunk boundaries.</p><h4>Document Processing Workflows</h4><p>In Databricks, the document processing workflow typically uses:</p><ul><li><strong>Workflows</strong> for orchestration</li><li><strong>Delta Live Tables</strong> for data pipeline management</li><li><strong>Notebooks</strong> for the actual processing logic</li></ul><p>The workflow I studied includes:</p><ol><li>Parsing documents</li><li>Cleaning the text</li><li>Chunking appropriately</li><li>Featurization (embedding)</li></ol><h3>Embeddings: Turning Words into Math</h3><p>This is where things get technical, but it’s essential to understand. Embeddings are how we convert text into something a computer can actually work with while preserving meaning.</p><h4>What Are Embeddings, Really?</h4><p>An embedding is a numerical representation (a vector) of content that captures semantic meaning.</p><p>Think of it like this: the words “car” and “automobile” are different text strings, but they mean the same thing. Good embeddings will represent them with similar vectors. That’s the magic — preserving meaning in numbers.</p><h4>Choosing the Right Embedding Model (This Matters More Than You Think)</h4><p>Not all embedding models are created equal. Here’s what I learned to consider:</p><ul><li><strong>Data/text properties</strong>: Vocabulary size, domain/topic, and typical length of chunks/documents</li><li><strong>Model capabilities</strong>: Multi-language support, embedding dimensions/size, and storage cost for higher dimensions</li></ul><p><strong>The critical question</strong>: Is your embedding model trained on data similar to yours?</p><ul><li><strong>Yes</strong> → Great, use it</li><li><strong>No</strong> → You have options:</li></ul><ol><li>Fine-tune your own embedding model on your data</li><li>Find a different pre-trained model that’s closer to your domain</li></ol><h4>Data Preparation in Databricks</h4><p>I learned about several key libraries and tools:</p><ul><li><strong>MLflow</strong>: For experiment tracking and model serving</li><li><strong>llama-index</strong>: For document processing and RAG pipelines</li><li><strong>PyPDF2</strong>: For PDF processing</li></ul><h4>Vector Databases: Where Embeddings Live</h4><p>Once you have embeddings, you need somewhere to store and search them efficiently. Enter vector databases.</p><p><strong>Key Properties</strong>:</p><ul><li>Create, Read, Update, Delete (CRUD) operations</li><li>Metadata filtering and hybrid search</li><li>Integrations with LM frameworks</li></ul><h4>How Do You Find Similar Vectors?</h4><p>This was fascinating to learn about. There are different algorithms for finding similar vectors:</p><ol><li><strong>K-Nearest Neighbors (KNN)</strong>: Finds exact nearest neighbors but can be slow</li><li><strong>Approximate Nearest Neighbors (ANN)</strong>: Faster but trades some accuracy</li><li><strong>Tree-based ANN</strong>: Organizes vectors hierarchically</li></ol><h4>Distance vs. Similarity: A Key Distinction</h4><p>This confused me at first, but it’s important:</p><ul><li><strong>Distance metrics</strong> (Euclidean L2, Manhattan L1): Higher metric = less similar</li><li><strong>Similarity metrics</strong> (Cosine Similarity): Higher metric = more similar</li></ul><p>The most popular is <strong>L2 (Euclidean distance)</strong>.</p><p><strong>Vector Search Strategies</strong>:</p><ul><li>K-nearest neighbors (KNN)</li><li>Approximate nearest neighbors (ANN)</li><li>Tree-based ANN</li></ul><p>Different proximity graph methods exist (the details get complex, but here are the main ones I encountered):</p><ul><li><strong>HNSW</strong> (Hierarchical Navigable Small Worlds): Builds proximity graphs based on Euclidean (L2) distance</li><li><strong>Clustering</strong>: FAISS</li><li><strong>Hashing</strong>: LSH</li><li><strong>Vector Compression</strong>: SCANN</li></ul><h4>Reranking: The Secret Weapon</h4><p>Here’s something that really improved my understanding of RAG systems: <strong>reranking</strong>.</p><p>The basic idea: your initial vector search retrieves candidates, but they might not be in the best order. Reranking is a method of prioritizing documents that are most relevant to the user’s query.</p><p><strong>Why reranking matters:</strong></p><ul><li>Places the most relevant docs at the top</li><li>Supports deeper semantic understanding</li><li>Can use different models than your initial retrieval</li></ul><p><strong>Different approaches:</strong></p><ul><li><strong>Private RAG</strong>: Cohere Rerank, Jina Rerank (proprietary solutions)</li><li><strong>Open Source</strong>: Cross-encoders, bge-reranker-base (you can self-host)</li></ul><p>The goal is simple: make sure the most relevant context gets to the LLM, not just similar-looking embeddings.</p><h3>Putting It All Together: Mosaic AI Vector Search</h3><p>Here’s where Databricks’ tooling really shines. I learned about <strong>Mosaic AI Vector Search</strong>, which is Databricks’ approach to vector search that integrates directly with their platform.</p><h4>How Does Vector Search Work in Databricks?</h4><p>I learned about different methods for setting this up:</p><p><strong>Method 1: Delta Sync API with Managed Embeddings</strong></p><ul><li>Features: Automatic sync, fully managed embeddings</li><li>Databricks handles the embedding generation for you</li><li>Easiest to set up</li></ul><p><strong>Method 2: Delta Sync API with Self-Managed Embeddings</strong></p><ul><li>Features: Automatic sync, but you control the embedding model</li><li>More flexibility if you have a custom embedding model</li></ul><p><strong>Method 3: Direct Access CRUD API</strong></p><ul><li>Features: Manual sync via API, self-managed embeddings</li><li>Most control, but more work to maintain</li></ul><h4>Setting Up Vector Search</h4><p>The typical workflow involves three steps:</p><ol><li><strong>Create a Vector Search endpoint</strong> — This is your search infrastructure</li><li><strong>Create a model serving endpoint</strong> — For generating embeddings</li><li><strong>Create a Vector search index</strong> — Where your embeddings live</li></ol><p>I went through practical examples using tools like MLflow, llama-index, and PyPDF2. The integration between all these components is what makes Databricks powerful for RAG.</p><h3>The RAG Application Workflow</h3><p>One of the most valuable things I learned was seeing the complete RAG application workflow from development to production:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5W4n5peyPHgkWx6tOJErA.png" /><figcaption>Figure 2: RAG Aplication Workflow</figcaption></figure><p><strong>The key stages:</strong></p><ol><li><strong>Experiment/User Testing</strong> — Try different approaches, gather feedback</li><li><strong>Pipeline/Eval</strong> — Build data pipelines, set up evaluation metrics</li><li><strong>Production</strong> — Deploy and monitor in production</li><li><strong>Monitoring &amp; Logging</strong> — Track performance continuously</li></ol><p>At the center of all this? <strong>MLflow</strong> — which handles:</p><ul><li>Experiment tracking</li><li>Evaluation</li><li>Visualization</li><li>Model registry</li><li>Serving</li><li>GenAI capabilities</li></ul><p>This workflow diagram really helped me understand that RAG isn’t just about retrieval and generation — it’s a complete software engineering lifecycle.</p><h3>MLflow: Your RAG Development Hub</h3><p>MLflow became central to everything I learned. It’s not just a model tracking tool — it’s the orchestration layer for the entire RAG development process.</p><h4>What MLflow Does for RAG:</h4><p><strong>Experiment Tracking:</strong></p><ul><li>Track different chunking strategies</li><li>Compare embedding models</li><li>Log retrieval metrics</li><li>Version your prompts</li></ul><p><strong>Evaluation:</strong></p><ul><li>Measure response quality</li><li>Track latency</li><li>Compare different RAG configurations</li><li>A/B test improvements</li></ul><p><strong>Model Registry:</strong></p><ul><li>Version control for your RAG pipeline</li><li>Deploy models to staging/production</li><li>Rollback if needed</li></ul><p><strong>Serving:</strong></p><ul><li>Deploy your RAG application</li><li>Handle inference requests</li><li>Scale as needed</li></ul><h4>MLflow Tracking for RAG</h4><p>The tracking capabilities I learned about:</p><ul><li><strong>User query tracking</strong> — What are people asking?</li><li><strong>Retrieval tracking</strong> — What context is being retrieved?</li><li><strong>Prompt Assembly tracking</strong> — How are prompts being constructed?</li><li><strong>LLM Generation tracking</strong> — What responses are generated?</li><li><strong>Post-processing</strong> (optional) — Any filtering or formatting</li></ul><p>This complete visibility is crucial for debugging and improving RAG systems. You can’t improve what you can’t measure.</p><h3>Measuring RAG Performance: Evaluation Metrics</h3><p>Speaking of measurement, one of the most important things I learned is how to actually evaluate if your RAG system is working well. You can’t just eyeball it — you need metrics.</p><p>RAG evaluation breaks down into two main categories: <strong>retrieval metrics</strong> (did we get the right context?) and <strong>generation metrics</strong> (did the LLM produce a good response?).</p><h4>Retrieval Evaluation Metrics</h4><p>These metrics measure how well your retrieval system finds relevant context:</p><p><strong>Context Precision</strong></p><ul><li>Measures the relevance of retrieved content</li><li>Based on both the query and context</li><li>Assesses how much of the retrieved context is actually useful</li><li>Formula: How many retrieved chunks are relevant / Total chunks retrieved</li><li><strong>Why it matters</strong>: High precision means you’re not wasting tokens on irrelevant context</li></ul><p><strong>Context Recall</strong></p><ul><li>Measures whether all relevant information was retrieved</li><li>Based on ground truth and retrieved context</li><li>Checks if you’re missing important information</li><li>Formula: Relevant chunks retrieved / All relevant chunks that exist</li><li><strong>Why it matters</strong>: Low recall means the LLM doesn’t have all the info it needs</li></ul><p><strong>Context Relevancy</strong></p><ul><li>Measures if the retrieved context is related to the query</li><li>Helps identify when retrieval is bringing in off-topic information</li><li>Assesses the semantic match between query and retrieved chunks</li><li><strong>Why it matters</strong>: Even if retrieval works technically, it might not be semantically relevant to what the user asked</li></ul><p><strong>Key insight I learned</strong>: You want both high precision AND high recall. High precision with low recall means you get good context but miss important stuff. High recall with low precision means you retrieve everything but dilute the important parts with noise.</p><h4>Generation Evaluation Metrics</h4><p>These metrics measure the quality of the LLM’s response:</p><p><strong>Faithfulness</strong></p><ul><li>Measures factual accuracy in relation to retrieved context</li><li>Checks if the response is grounded in the provided context</li><li>Detects hallucinations or unsupported claims</li><li><strong>Why it matters</strong>: Your LLM might generate plausible-sounding but false information</li></ul><p><strong>Answer Relevancy</strong></p><ul><li>Measures how well the response addresses the user’s query</li><li>Based on the alignment of the response with the user’s intent</li><li>Checks if the answer actually answers the question asked</li><li><strong>Why it matters</strong>: A factually correct response that doesn’t answer the question is useless</li></ul><p><strong>Answer Correctness</strong></p><ul><li>Compares the generated answer to ground truth</li><li>Measures accuracy when you have known correct answers</li><li><strong>Why it matters</strong>: This is your ultimate quality check when you have labeled data</li></ul><h4>How These Metrics Work Together</h4><p>What I found fascinating is how these metrics interact:</p><pre>Query → Retrieval → Generation → Response</pre><pre>Retrieval Metrics:        Generation Metrics:<br>- Context Precision       - Faithfulness<br>- Context Recall          - Answer Relevancy  <br>- Context Relevancy       - Answer Correctness</pre><p><strong>A good RAG system needs:</strong></p><ul><li>High context precision (relevant chunks)</li><li>High context recall (all relevant info)</li><li>High context relevancy (semantically matched to query)</li><li>High faithfulness (no hallucinations)</li><li>High answer relevancy (addresses the query)</li><li>High answer correctness (factually accurate)</li></ul><p><strong>Common failure patterns I learned about:</strong></p><ul><li>Good retrieval + poor generation = LLM ignores good context</li><li>Poor retrieval + good generation = LLM hallucinates to fill gaps</li><li>Good retrieval + good generation but wrong intent = Answer is correct but doesn’t help the user</li></ul><h4>Evaluating in Practice</h4><p>MLflow makes it easy to track these metrics across experiments. You can:</p><ul><li>Compare different chunking strategies (does smaller chunks improve precision?)</li><li>Test different embedding models (does recall improve?)</li><li>Evaluate prompt variations (does faithfulness increase?)</li><li>A/B test different retrieval configurations</li></ul><p><strong>Pro tip</strong>: Don’t optimize for just one metric. A system with perfect precision but terrible recall is useless. You need to balance all these metrics based on your use case.</p><h3>What I Wish Someone Had Told Me Before Starting</h3><p>After going through all this material, here’s what really matters:</p><ol><li><strong>Prompt engineering is your foundation</strong>: You can’t build good RAG systems without understanding how to structure prompts properly. The four-component framework (instruction, context, input, output format) is non-negotiable.</li><li><strong>RAG is the practical solution</strong>: Fine-tuning is expensive and constant. RAG lets you keep models current with domain-specific knowledge without retraining. This is how you make LLMs useful for real businesses.</li><li><strong>Data prep is everything (seriously)</strong>: I can’t stress this enough. Your RAG system is only as good as your data pipeline. Bad chunking = bad retrieval = bad outputs. Spend time here.</li><li><strong>Embeddings aren’t one-size-fits-all</strong>: The model you choose matters. If it wasn’t trained on data like yours, your retrieval will suffer. Don’t skip the evaluation step.</li><li><strong>Vector search is the engine</strong>: Understanding the difference between exact and approximate search, distance metrics, and algorithms like HNSW isn’t just theoretical — it affects your system’s speed and accuracy.</li><li><strong>Reranking can make a huge difference</strong>: Don’t just rely on vector similarity. Reranking helps you surface the truly relevant context, not just semantically similar text.</li><li><strong>Mosaic AI Vector Search simplifies deployment</strong>: Databricks provides different sync methods (managed embeddings, self-managed, or direct API access) depending on your needs. Choose based on how much control vs. convenience you want.</li><li><strong>Think in workflows, not just code</strong>: The RAG application workflow from development to production involves data pipelines, evaluation, staging, and monitoring. It’s software engineering, not just ML.</li><li><strong>MLflow is essential</strong>: It’s not optional. You need experiment tracking, evaluation metrics, model versioning, and serving capabilities. MLflow handles all of this for RAG systems.</li><li><strong>Measure everything with the right metrics</strong>: RAG evaluation requires both retrieval metrics (context precision/recall) and generation metrics (faithfulness/answer relevancy). You can’t optimize what you don’t measure, and you need to balance multiple metrics — not just optimize for one.</li></ol><h3>What’s Coming Next</h3><p>In Part 2, I’ll dive into <strong>building actual GenAI applications</strong> using compound AI systems:</p><ul><li>Understanding the shift from simple models to compound AI systems</li><li>Intent classification and routing queries to the right pipelines</li><li>Building chains: breaking complex tasks into orchestrated steps</li><li>The difference between a single LLM task vs. a multi-step LLM chain</li><li>Types and components that make up production AI systems</li><li>Practical patterns for building robust applications</li></ul><p>Then in <strong>Part 3</strong>, I’ll tackle the critical topics of evaluation and governance:</p><ul><li>Component-specific evaluation needs for GenAI systems</li><li>Data legality and governance challenges</li><li>Safety measures and guardrails</li><li>Handling harmful behavior and responses</li><li>AI risks and mitigation strategies</li></ul><p>Finally, <strong>Part 4</strong> will cover getting these systems into production:</p><ul><li>Batch, stream, and real-time deployment strategies</li><li>MLflow deployment capabilities</li><li>Unity Catalog for model registry</li><li>Monitoring and maintaining production systems</li></ul><p>I’ve laid the foundation with data preparation, embeddings, and retrieval. Now it’s time to understand how to architect complete systems, ensure they’re safe and compliant, and deploy them reliably.</p><p><strong>If you’re studying for the Databricks AI Engineering certification or just learning about RAG systems, I hope this helps.</strong> This is a lot to absorb, and I’m still digesting it myself. Drop a comment if you have questions or if there’s something specific you want me to cover in the next parts!</p><p><em>Part 2 coming soon: Building Compound AI Systems</em></p><p>#AI #MachineLearning #DataScience #Databricks #RAG #GenerativeAI #LLM #AIEngineering #LearningInPublic</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b8f181c7861" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To Learn Real-World Data Science Joining Competitions Will Not Be Enough]]></title>
            <link>https://medium.com/omdena/to-learn-real-world-data-science-joining-competitions-will-not-be-enough-73d39e40df1f?source=rss-b4c0d1550b69------2</link>
            <guid isPermaLink="false">https://medium.com/p/73d39e40df1f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[competition]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ana Lopez Moreno]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 19:22:08 GMT</pubDate>
            <atom:updated>2019-11-14T19:24:17.000Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JDApeGCWgfK17_L2" /></figure><h4>How to acquire the full set of skills you need as a data scientist.</h4><p>This article has been co-authored with <a href="https://www.linkedin.com/in/erum-afzal-64827b24/">Erum Afzal</a>.</p><blockquote>“Basically, you, me, everyone, we want to learn and leap and then repeat.” — Whitney Johnson</blockquote><p>Data Science, Machine Learning and Artificial Intelligence is meant to stay and are being used to solve problems in almost all disciplines of life.</p><p>You might already know that there are plenty of online resources that allow you to acquire relevant knowledge for a data science career.</p><h3>The theoretical basis of data science skills</h3><p>You need skills in statistics, development, and business/domain knowledge. For statistics and development, there are various resources that take us from a basic level to a theoretically advanced level.</p><p><strong>However, the question is, how can I take the theory learned and apply it to a real-world problem? How can I transition from the academic world to real-life?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*jd_xgOzAFw7rBklREtgOTQ.png" /></figure><p>The best way to do this is by getting your hands dirty by working on real-world problems by joining hackathons or online competitions.</p><h3>The role of AI competitions</h3><p>Competitions are increasingly popular and are playing an important role for data science enthusiasts who want to test and improve their knowledge in a real problem and also be able to compare the results of their models with others.</p><p>Occupying the best positions gives you the satisfaction of winning a prize and additionally, you can gain recognition in the competition platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*djy6sHVxr3nbjYxytPfjtQ.jpeg" /></figure><blockquote>“Whether it’s Google or Apple or free software, we’ve got some fantastic competitors and it keeps us on our toes.” — Bill Gates</blockquote><p>While if you join a competition you’ll improve your technical skills by implementing models, you fall short on the following.</p><h3>Why competitions are not enough</h3><p>In a competition, the data has already been extracted from an information system, while in the real world there are a various skills needed to get the data, prepare it, refine the problem, and coordinate across teams.</p><p><strong>Lack of communication</strong></p><p>In a real-world setting, different working groups are set up to solve the problem which consists of various roles and each one has the function of supporting the solution of a problem. Without proper communication skills, no solution could be built.</p><p><strong>Refining the problem</strong></p><p>A data scientist must have more skills than just implement a model, sometimes companies have data but do not know how to translate a problem into an AI context, or the problem they are posing cannot be solved with their data.</p><p>There are plenty of scenarios that you can find in the real world where a data scientist needs to show mental flexibility.</p><p><strong>Team work</strong></p><p>Complex problems require diversity of thought and participating in competitions means to compete against rather than work with each other. If you want to make an impact in your career, you better learn to work in a team.</p><h3>The importance of collaborative solutions</h3><p><strong>In collaborative environments, the group works towards obtaining a successful team result.</strong></p><p>Knowledge is shared and the best ways to address the problem are discussed.</p><p>You, as a data science enthusiast, improve your skills since in these environments people with <strong>basic</strong>, <strong>medium</strong> and <strong>expert</strong> <strong>knowledge</strong> help each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*oEhHkmXyGlY_NKKQRvhfYg.jpeg" /></figure><h3>The role of Omdena in addressing those gaps</h3><p>Omdena offers collaborative environments, where for eight weeks around forty people work together to find a solution to a problem defined:</p><p><strong>These problems have a social impact and by solving them you improve the lives of people on the planet.</strong></p><p>Collaborators work as an empowered team and split the problem into subtasks, then each person defines in which task they want to collaborate.</p><p>Everyone in the team has the passion to learn and collaborate to build a solution that causes a positive impact.</p><p>Omdena’s challenges range from fighting hunger, preventing sexual harassment, detecting wildfires, to analyzing tweets for preventing violent acts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYo1TGugRbYsI6hGe1FtRg.png" /><figcaption><a href="http://www.omdena.com/">www.omdena.com</a></figcaption></figure><h3>Conclusions</h3><ul><li>Collaborative environments allow you to meet people around the world with your same interests, so you build a network of colleagues or friends where you could find help in the future.</li><li>To working in real-world problems, and real platforms of infrastructure help you to build technical skills that you could require for a new job.</li><li>In a collaborative environment, each member has a role defined, you make periodical meetings by task and by the project to monitor the project and objectives achieved. It helps you to improve your communication skills.</li></ul><h4>Want to become an Omdena Collaborator and join one of our tough AI for Good challenges, <a href="https://omdena.com/our-projects/">apply here</a>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*GCwtlkfU1STJhyyw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73d39e40df1f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/omdena/to-learn-real-world-data-science-joining-competitions-will-not-be-enough-73d39e40df1f">To Learn Real-World Data Science Joining Competitions Will Not Be Enough</a> was originally published in <a href="https://medium.com/omdena">Omdena</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Unique Experiences in Omdena’s AI Challenge on Preventing Sexual Harassment in India]]></title>
            <link>https://medium.com/omdena/preventing-sexual-harassment-in-india-32e1ec2feafa?source=rss-b4c0d1550b69------2</link>
            <guid isPermaLink="false">https://medium.com/p/32e1ec2feafa</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sexual-harassment]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ana Lopez Moreno]]></dc:creator>
            <pubDate>Sun, 29 Sep 2019 00:26:18 GMT</pubDate>
            <atom:updated>2019-10-04T12:51:44.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cSF4sVgcGZemsnf7" /><figcaption>Photo by <a href="https://unsplash.com/@mihaisurdu?utm_source=medium&amp;utm_medium=referral">Mihai Surdu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Working with a community around the world on using AI to prevent Sexual Harassment.</h4><blockquote>I am <a href="https://www.linkedin.com/in/amlopez81/">Ana Lopez</a> from Colombia and my passion is AI, ML, DS and everything around these topics. I love Python and solving social problems with AI.</blockquote><blockquote>My mantra is to work together and solve problems that make a positive impact on other people.</blockquote><h4>Summary of my first challenge</h4><p>When I heard about Omdena, I had a lot of interest because of their social challenges. For me, this is a big motivation.</p><p>I applied to the first challenge but I was not selected. However, I continued to follow Omdena and when this challenge was open I applied again and after the selection process, I received the good news.</p><blockquote>I was over the moon but I had many feelings because it was more than a challenge for me, it was about measuring my technical knowledge and my communication skills.</blockquote><p>My first role in the challenge was an ML Engineer, but it changed to Data Engineer and I really enjoyed this role because it taught me many new things.</p><p>I worked with a group of people from different countries, even with Colombian people who live in another country. It is amazing to have the opportunity to meet people around the world.</p><blockquote>The first week was a bit crazy, many new posts to read, everyone was participating in the channels, introducing each other and proposing action steps.</blockquote><p>We got the problem statement for the challenge and had the link to the dataset. I read about the case many times and explored the data.</p><p>The AI challenge partner was award-winning NGO Safecity India, which has one of the biggest data sets on Sexual Harassment cases. I installed their app to understand how people were reporting the incidents. The challenges focus was on Mumbai and Delhi.</p><h4>I focused on data cleaning</h4><blockquote>I think that this is one of the most important but often overlooked tasks in a Machine Learning Project, because you need to understand the data in detail to make a decision on how to use it in the most impactful way.</blockquote><p>I built a table with the metadata and this information was used to identify problems with the dataset:</p><ul><li><strong>#</strong> : Sequence ID unique for row.</li><li><strong>INCIDENT TITLE:</strong> Title that the user gives to the incident reported.</li><li><strong>INCIDENT DATE</strong>: Date when the user reported the incident.</li><li><strong>LOCATION</strong>: Location where the incident occurs.</li><li><strong>DESCRIPTION</strong>: Description of the event reported for the user.</li><li><strong>CATEGORY</strong>: Category that the system allows that the User selected ( there are not limited in this selection): Online Harassment, Petty Robbery, Stalking, Ogling/Lewd Facial Expressions/Staring, Catcalls/Whistles, Taking pictures without permission, Commenting, Indecent Exposure/Masturbation in public, Sexual Invites, Touching /Groping, Rape / Sexual Assault, Human Trafficking, Others.</li><li><strong>LATITUDE</strong>: Latitude coordinate where occurred the event.</li><li><strong>LONGITUDE</strong>: Longitude coordinate where occurred the event.</li><li><strong>More Info</strong>: Additional information that the user gives.</li></ul><p>We had the opportunity to work with the <a href="https://spell.run/)">top cloud platform </a>for machine learning Spell as they partnered with Omdena. This made the process way easier as I only needed to create a developer account to work in Jupyter. I decided to work the code in Visual Studio Code and created the repository in <a href="https://github.com/darkanita/Omdena">GitHub</a>. Then I installed the package of Spell in my machine to run the code in my console using the resources in the cloud. It was great.</p><p>If you check the image below you see only one line and my code runs without problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-KvjpAOlBUTL_8Hkl3cwA.png" /></figure><p>The first problem was missing values. In our challenge, the location of the sexual harassment incident was important, and we had 421 missing values in Latitude and Longitude columns. Dropping this information was not an option, so I searched for APIs to solve this.</p><p>I found <a href="https://developer.here.com/">HERE</a> and the developer account had interesting options to help us solve the problems with coordinates or descriptions of sites. In our case, the column LOCATION was useful to complete the data because in this column we had the description of the location of the incident.</p><p>When the missing values were solved, we found that we had descriptions in Hindi language. We decided to use the package googletrans to solve this problem and identify descriptions in a language different from English and translate this description into English.</p><p>Next, the problems with duplicates, special characters, normalizing text, etc., were solved with the help of pandas, nltk, re, and other packages.</p><p>Through group work, we could clean the data faster and decided to save the dataset in the cloud and give access to the public.</p><h4>Not the last time I participated in Omdena’s challenges</h4><p>I am very happy about this opportunity and my experience was wonderful because I learned a lot and I could connect with a group of people with strong skills in different areas. This was an big enrichment to all,</p><blockquote>We made a great team and I will surely continue participating in Omdena’s challenges. :)</blockquote><h4>If you want to be part of the #AIforGood movement, join our global community as an <a href="https://omdena.com/our-projects/">(aspiring) data scientist</a> or AI enthusiast.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*IC8hn26qCdfJpBaz.png" /></figure><p>If you want to receive updates on our AI Challenges, get expert interviews, and practical tips to boost your AI skills, <a href="http://eepurl.com/gto7Xn?source=post_page---------------------------">subscribe</a> to our monthly newsletter.</p><p>We are also on <a href="https://www.linkedin.com/company/14052175?source=post_page---------------------------">LinkedIn</a>, <a href="https://www.instagram.com/omdenaglobal/">Instagram</a>, <a href="https://web.facebook.com/OmdenaAI/?source=post_page---------------------------">Facebook</a>, and <a href="https://twitter.com/OmdenaAI?source=post_page---------------------------">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32e1ec2feafa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/omdena/preventing-sexual-harassment-in-india-32e1ec2feafa">My Unique Experiences in Omdena’s AI Challenge on Preventing Sexual Harassment in India</a> was originally published in <a href="https://medium.com/omdena">Omdena</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>