Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
### Change log [2025-12-31 07:49:10]
1. New item created: `verify_schema` (version: `1.0.0`)

### Change log [2025-12-31 07:49:05]
1. Item Updated: `agent_deployer` (from version: `1.0.0` to `1.0.0`)
2. Item Updated: `histogram_data_drift` (from version: `1.0.0` to `1.0.0`)
3. Item Updated: `openai_proxy_app` (from version: `1.0.0` to `1.0.0`)
4. New item created: `vllm_module` (version: `1.0.0`)
5. Item Updated: `count_events` (from version: `1.0.0` to `1.0.0`)
6. Item Updated: `evidently_iris` (from version: `1.0.0` to `1.0.0`)

### Change log [2025-12-31 07:48:55]
1. Item Updated: `test_classifier` (from version: `1.1.0` to `1.1.0`)
2. Item Updated: `sklearn_classifier` (from version: `1.2.0` to `1.2.0`)
3. Item Updated: `model_server_tester` (from version: `1.1.0` to `1.1.0`)
4. Item Updated: `azureml_serving` (from version: `1.1.0` to `1.1.0`)
5. Item Updated: `describe_dask` (from version: `1.2.0` to `1.2.0`)
6. Item Updated: `batch_inference` (from version: `1.8.0` to `1.8.0`)
7. Item Updated: `v2_model_server` (from version: `1.2.0` to `1.2.0`)
8. Item Updated: `gen_class_data` (from version: `1.3.0` to `1.3.0`)
9. Item Updated: `send_email` (from version: `1.2.0` to `1.2.0`)
10. Item Updated: `tf2_serving` (from version: `1.1.0` to `1.1.0`)
11. Item Updated: `aggregate` (from version: `1.4.0` to `1.4.0`)
12. Item Updated: `open_archive` (from version: `1.2.0` to `1.2.0`)
13. Item Updated: `describe` (from version: `1.4.0` to `1.4.0`)
14. Item Updated: `v2_model_tester` (from version: `1.1.0` to `1.1.0`)
15. Item Updated: `text_to_audio_generator` (from version: `1.3.0` to `1.3.0`)
16. Item Updated: `pii_recognizer` (from version: `0.4.0` to `0.4.0`)
17. Item Updated: `github_utils` (from version: `1.1.0` to `1.1.0`)
18. Item Updated: `sklearn_classifier_dask` (from version: `1.1.1` to `1.1.1`)
19. Item Updated: `azureml_utils` (from version: `1.4.0` to `1.4.0`)
20. Item Updated: `question_answering` (from version: `0.5.0` to `0.5.0`)
21. Item Updated: `structured_data_generator` (from version: `1.6.0` to `1.6.0`)
22. Item Updated: `arc_to_parquet` (from version: `1.5.0` to `1.5.0`)
23. Item Updated: `silero_vad` (from version: `1.4.0` to `1.4.0`)
24. Item Updated: `load_dataset` (from version: `1.2.0` to `1.2.0`)
25. Item Updated: `auto_trainer` (from version: `1.8.0` to `1.8.0`)
26. Item Updated: `feature_selection` (from version: `1.6.0` to `1.6.0`)
27. Item Updated: `translate` (from version: `0.3.0` to `0.3.0`)
28. Item Updated: `describe_spark` (from version: `1.1.0` to `1.1.0`)
29. Item Updated: `pyannote_audio` (from version: `1.3.0` to `1.3.0`)
30. Item Updated: `onnx_utils` (from version: `1.3.0` to `1.3.0`)
31. Item Updated: `batch_inference_v2` (from version: `2.6.0` to `2.6.0`)
32. Item Updated: `transcribe` (from version: `1.2.0` to `1.2.0`)
33. Item Updated: `model_server` (from version: `1.2.0` to `1.2.0`)
34. Item Updated: `mlflow_utils` (from version: `1.1.0` to `1.1.0`)
35. Item Updated: `noise_reduction` (from version: `1.1.0` to `1.1.0`)
36. Item Updated: `hugging_face_serving` (from version: `1.1.0` to `1.1.0`)

### Change log [2025-12-28 14:17:26]
1. Item Updated: `agent_deployer` (from version: `1.0.0` to `1.0.0`)
2. Item Updated: `histogram_data_drift` (from version: `1.0.0` to `1.0.0`)
Expand Down
2 changes: 1 addition & 1 deletion catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/development/tags.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"categories": ["NLP", "monitoring", "deep-learning", "audio", "utils", "machine-learning", "model-serving", "model-testing", "data-analysis", "genai", "model-training", "data-preparation", "data-generation"], "kind": ["job", "serving", "nuclio:serving"]}
{"kind": ["nuclio:serving", "job", "serving"], "categories": ["utils", "genai", "deep-learning", "NLP", "model-serving", "machine-learning", "data-generation", "monitoring", "audio", "model-testing", "data-preparation", "model-training", "data-analysis"]}
70 changes: 26 additions & 44 deletions modules/development/agent_deployer/1.0.0/src/agent_deployer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,8 @@
},
{
"cell_type": "code",
"execution_count": 21,
"id": "be42e7c5-b2af-476f-8041-c17be56edb52",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"> 2025-12-03 07:17:36,530 [info] Project loaded successfully: {\"project_name\":\"langchain-example-10\"}\n"
]
}
],
"source": [
"%config Completer.use_jedi = False\n",
"\n",
Expand All @@ -31,7 +21,9 @@
"image = \"mlrun/mlrun\"\n",
"project_name = \"langchain-example\"\n",
"project = get_or_create_project(project_name, context=\"./\", allow_cross_project=True)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -43,17 +35,17 @@
},
{
"cell_type": "code",
"execution_count": 23,
"id": "a47d7789-2ea2-493e-8905-f53b978e2abd",
"metadata": {},
"outputs": [],
"source": [
"# Create project secrets for project\n",
"secrets = {\"OPENAI_API_KEY\": \"\", # add your OpenAI API key here\n",
" \"OPENAI_BASE_URL\": \"\" # add your OpenAI base url here if needed\n",
" }\n",
"project.set_secrets(secrets=secrets, provider=\"kubernetes\")"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -65,10 +57,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "25cbd982-86de-43b5-91ef-24fc60b2d758",
"metadata": {},
"outputs": [],
"source": [
"%%writefile langchain_model.py\n",
"\n",
Expand Down Expand Up @@ -197,7 +187,9 @@
" result[\"total_cost_usd\"] = input_cost + output_cost\n",
" return result\n",
" "
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -209,20 +201,8 @@
},
{
"cell_type": "code",
"execution_count": 81,
"id": "691e9068-ec9c-40d6-9ac8-e6c3e605b44c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"> 2025-12-03 10:55:46,194 [info] Project loaded successfully: {\"project_name\":\"langchain-example-10\"}\n",
"> 2025-12-03 10:55:46,463 [info] Model monitoring credentials were set successfully. Please keep in mind that if you already had model monitoring functions / model monitoring infra / tracked model server deployed on your project, you will need to redeploy them. For redeploying the model monitoring infra, first disable it using `project.disable_model_monitoring()` and then enable it using `project.enable_model_monitoring()`.\n",
"details: MLRunConflictError(\"The following model-montioring infrastructure functions are already deployed, aborting: ['model-monitoring-controller', 'model-monitoring-writer']\\nIf you want to redeploy the model-monitoring controller (maybe with different base-period), use update_model_monitoring_controller.If you want to redeploy all of model-monitoring infrastructure, call disable_model_monitoringbefore calling enable_model_monitoring again.\")\n"
]
}
],
"source": [
"module = mlrun.import_module(\"hub://agent_deployer\")\n",
"\n",
Expand All @@ -237,11 +217,11 @@
" prompt_template= \"\"\"\n",
" Answer the following questions as best you can.\n",
" You have access to the following tools:\n",
" {tools}\n",
" {{tools}}\n",
" Use the following format:\n",
" Question: the input question you must answer\n",
" Thought: you should always think about what to do\n",
" Action: the action to take, should be one of [{tool_names}]\n",
" Action: the action to take, should be one of [{{tool_names}}]\n",
" Action Input: the input to the action\n",
" Observation: the result of the action\n",
" ... (this Thought/Action/Action Input/Observation can repeat N times)\n",
Expand All @@ -252,16 +232,18 @@
" Question: {input}\n",
" Thought:{agent_scratchpad}\n",
" \"\"\",\n",
")"
]
")\n"
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": 82,
"id": "0bb1c4d1-5d7c-4d1c-bf51-8f53b319e91f",
"metadata": {},
"source": "func = agent.deploy_function(enable_tracking=True)",
"outputs": [],
"source": "func = agent.deploy_function(enable_tracking=True)"
"execution_count": null
},
{
"metadata": {},
Expand All @@ -272,10 +254,10 @@
{
"metadata": {},
"cell_type": "code",
"source": "func.invoke(\"./\", {\"question\" : \"If a pizza costs $18.75 and I want to buy 3, what is the total cost?\"})",
"id": "ac5c3ba174d2cf8b",
"outputs": [],
"execution_count": null,
"source": "func.invoke(\"./\", {\"question\" : \"If a pizza costs $18.75 and I want to buy 3, plus a 15% tip, what is the total cost?\"})",
"id": "ac5c3ba174d2cf8b"
"execution_count": null
},
{
"metadata": {},
Expand All @@ -289,8 +271,6 @@
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": [
"%%writefile monitoring_application.py\n",
"\n",
Expand Down Expand Up @@ -405,7 +385,9 @@
" value=value,\n",
" )\n"
],
"id": "377487422f5ed289"
"id": "377487422f5ed289",
"outputs": [],
"execution_count": null
},
{
"metadata": {},
Expand All @@ -416,8 +398,6 @@
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": [
"llm_monitoring_app = project.set_model_monitoring_function(\n",
" func=\"monitoring_application.py\",\n",
Expand All @@ -428,7 +408,9 @@
"\n",
"project.deploy_function(llm_monitoring_app)"
],
"id": "9d6ad2a4a47a44bd"
"id": "9d6ad2a4a47a44bd",
"outputs": [],
"execution_count": null
}
],
"metadata": {
Expand Down
18 changes: 3 additions & 15 deletions modules/development/agent_deployer/1.0.0/static/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ <h1>Configure mlrun project:<a class="headerlink" href="#configure-mlrun-project
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&gt; 2025-12-03 07:17:36,530 [info] Project loaded successfully: {"project_name":"langchain-example-10"}
</pre></div>
</div>
</div>
</div>
</section>
<section id="create-openai-secret">
Expand Down Expand Up @@ -367,11 +362,11 @@ <h1>Import the module from the hub:<a class="headerlink" href="#import-the-modul
<span class="n">prompt_template</span><span class="o">=</span> <span class="s2">"""</span>
<span class="s2"> Answer the following questions as best you can.</span>
<span class="s2"> You have access to the following tools:</span>
<span class="s2"> </span><span class="si">{tools}</span>
<span class="s2"> {{tools}}</span>
<span class="s2"> Use the following format:</span>
<span class="s2"> Question: the input question you must answer</span>
<span class="s2"> Thought: you should always think about what to do</span>
<span class="s2"> Action: the action to take, should be one of [</span><span class="si">{tool_names}</span><span class="s2">]</span>
<span class="s2"> Action: the action to take, should be one of [{{tool_names}}]</span>
<span class="s2"> Action Input: the input to the action</span>
<span class="s2"> Observation: the result of the action</span>
<span class="s2"> ... (this Thought/Action/Action Input/Observation can repeat N times)</span>
Expand All @@ -386,13 +381,6 @@ <h1>Import the module from the hub:<a class="headerlink" href="#import-the-modul
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&gt; 2025-12-03 10:55:46,194 [info] Project loaded successfully: {"project_name":"langchain-example-10"}
&gt; 2025-12-03 10:55:46,463 [info] Model monitoring credentials were set successfully. Please keep in mind that if you already had model monitoring functions / model monitoring infra / tracked model server deployed on your project, you will need to redeploy them. For redeploying the model monitoring infra, first disable it using `project.disable_model_monitoring()` and then enable it using `project.enable_model_monitoring()`.
details: MLRunConflictError("The following model-montioring infrastructure functions are already deployed, aborting: ['model-monitoring-controller', 'model-monitoring-writer']\nIf you want to redeploy the model-monitoring controller (maybe with different base-period), use update_model_monitoring_controller.If you want to redeploy all of model-monitoring infrastructure, call disable_model_monitoringbefore calling enable_model_monitoring again.")
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
Expand All @@ -406,7 +394,7 @@ <h1>Import the module from the hub:<a class="headerlink" href="#import-the-modul
<h1>Invoke the deployed agent:<a class="headerlink" href="#invoke-the-deployed-agent" title="Link to this heading">#</a></h1>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">func</span><span class="o">.</span><span class="n">invoke</span><span class="p">(</span><span class="s2">"./"</span><span class="p">,</span> <span class="p">{</span><span class="s2">"question"</span> <span class="p">:</span> <span class="s2">"If a pizza costs $18.75 and I want to buy 3, plus a 15% tip, what is the total cost?"</span><span class="p">})</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">func</span><span class="o">.</span><span class="n">invoke</span><span class="p">(</span><span class="s2">"./"</span><span class="p">,</span> <span class="p">{</span><span class="s2">"question"</span> <span class="p">:</span> <span class="s2">"If a pizza costs $18.75 and I want to buy 3, what is the total cost?"</span><span class="p">})</span>
</pre></div>
</div>
</div>
Expand Down
Loading