From dcd0f8e29fa11e21604cb6db0494c6532ab82639 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:40:52 -0400 Subject: [PATCH 1/4] add-note-to-openrag-agent --- flows/openrag_agent.json | 77 +++++++++++++++++++++++++++------------- 1 file changed, 53 insertions(+), 24 deletions(-) diff --git a/flows/openrag_agent.json b/flows/openrag_agent.json index bb02b425..dcfcb135 100644 --- a/flows/openrag_agent.json +++ b/flows/openrag_agent.json @@ -191,6 +191,7 @@ } }, "id": "xy-edge__MCP-7EY21{œdataTypeœ:œMCPœ,œidœ:œMCP-7EY21œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-crjWf{œfieldNameœ:œtoolsœ,œidœ:œAgent-crjWfœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}", + "selected": false, "source": "MCP-7EY21", "sourceHandle": "{œdataTypeœ:œMCPœ,œidœ:œMCP-7EY21œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}", "target": "Agent-crjWf", @@ -448,8 +449,8 @@ "width": 192 }, "position": { - "x": 1264.0651279011304, - "y": 1192.017532447814 + "x": 1338.2905337667046, + "y": 1206.5715335979264 }, "selected": false, "type": "genericNode" @@ -755,7 +756,7 @@ ], "frozen": false, "icon": "OpenSearch", - "last_updated": "2025-10-06T15:23:50.339Z", + "last_updated": "2025-10-09T17:03:19.845Z", "legacy": false, "lf_version": "1.6.0", "metadata": { @@ -1375,8 +1376,8 @@ "width": 320 }, "position": { - "x": 1202.1762389080463, - "y": 395.8072555285192 + "x": 1183.2560374129, + "y": 320.1264495479339 }, "selected": false, "type": "genericNode" @@ -1409,7 +1410,7 @@ ], "frozen": false, "icon": "binary", - "last_updated": "2025-10-06T15:23:50.341Z", + "last_updated": "2025-10-09T17:03:19.846Z", "legacy": false, "lf_version": "1.6.0", "metadata": { @@ -1491,7 +1492,7 @@ "show": true, "title_case": false, "type": "str", - "value": "OPENAI_API_KEY" + "value": "" }, "chunk_size": { "_input_type": "IntInput", @@ -1576,9 +1577,7 @@ "info": "Select the embedding model to use", "name": "model", "options": [ - "text-embedding-3-small", - "text-embedding-3-large", - "text-embedding-ada-002" + "text-embedding-3-small" ], "options_metadata": [], "placeholder": "", @@ -1734,7 +1733,7 @@ ], "frozen": false, "icon": "bot", - "last_updated": "2025-10-06T15:23:50.396Z", + "last_updated": "2025-10-09T17:03:19.888Z", "legacy": false, "lf_version": "1.6.0", "metadata": { @@ -2226,7 +2225,7 @@ "show": true, "title_case": false, "type": "str", - "value": "OPENRAG-QUERY-FILTER" + "value": "" } }, "tool_mode": false @@ -2241,8 +2240,8 @@ "width": 320 }, "position": { - "x": 745.3341059713564, - "y": 95.0152511387621 + "x": 722.0477041311764, + "y": 119.75705309395346 }, "selected": false, "type": "genericNode" @@ -2273,7 +2272,7 @@ ], "frozen": false, "icon": "brain-circuit", - "last_updated": "2025-10-06T15:23:50.343Z", + "last_updated": "2025-10-09T17:03:19.855Z", "legacy": false, "lf_version": "1.6.0", "metadata": { @@ -2571,8 +2570,8 @@ "width": 320 }, "position": { - "x": 1206.0291133693556, - "y": -185.39565741253472 + "x": 1188.5643119892204, + "y": -237.60813653856357 }, "selected": false, "type": "genericNode" @@ -2601,7 +2600,7 @@ "frozen": false, "icon": "Mcp", "key": "mcp_lf-starter_project", - "last_updated": "2025-10-06T15:23:56.578Z", + "last_updated": "2025-10-09T17:03:19.855Z", "legacy": false, "mcpServerName": "lf-starter_project", "metadata": { @@ -2813,30 +2812,60 @@ "showNode": true, "type": "MCP" }, + "dragging": false, "id": "MCP-7EY21", "measured": { "height": 284, "width": 320 }, "position": { - "x": 675.7137923419156, - "y": 878.6218422334763 + "x": 733.9297969423658, + "y": 862.6124409683524 }, "selected": false, "type": "genericNode" + }, + { + "data": { + "id": "note-Wg9xF", + "node": { + "description": "## README\n\nThis flow generates answers for OpenRAG's chat, informed by the context stored in OpenSearch.\nIn this flow, the [**Langflow Agent** component](https://docs.langflow.org/agents) uses the connected [**Language Model** component](https://docs.langflow.org/components-models) to select the correct tool to complete requests.\n* If the Agent determines your request requires external knowledge, it will embed your query with the [**Embedding Model** component](https://docs.langflow.org/components-embedding-models) and query your [OpenSearch knowledge](https://docs.openr.ag/knowledge).\n\n* If the Agent determines your request requires a web search, it selects the [**MCP Tools** component](https://docs.langflow.org/mcp-client#mcp-tools-parameters) to fetch web content with the [OpenSearch URL ingestion flow](https://docs.openr.ag/ingestion#url-flow).\n\nUsing the retrieved data, the Agent generates a response with the connected [**Language Model** component](https://docs.langflow.org/components-models) and sends it to the [**Chat Output** component](https://docs.langflow.org/components-io).\n\nFor more information, see the [OpenRAG docs](https://docs.openr.ag/agents).", + "display_name": "", + "documentation": "", + "template": { + "backgroundColor": "amber" + } + }, + "type": "note" + }, + "dragging": false, + "height": 469, + "id": "note-Wg9xF", + "measured": { + "height": 469, + "width": 644 + }, + "position": { + "x": 19.942791510714386, + "y": 259.5061905471592 + }, + "resizing": false, + "selected": false, + "type": "noteNode", + "width": 644 } ], "viewport": { - "x": -237.0727605845459, - "y": 154.6885920024542, - "zoom": 0.602433700773958 + "x": 15.987785397208654, + "y": 201.25966590756093, + "zoom": 0.6870962766086257 } }, "description": "OpenRAG OpenSearch Agent", "endpoint_name": null, "id": "1098eea1-6649-4e1d-aed1-b77249fb8dd0", "is_component": false, - "last_tested_version": "1.6.0", + "last_tested_version": "1.6.3.dev1", "name": "OpenRAG Open Search Agent", "tags": [ "assistants", From 07cf0c93d02118cd2cc08a562babb92800f6cdcb Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:44:35 -0400 Subject: [PATCH 2/4] diff --- flows/openrag_agent.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flows/openrag_agent.json b/flows/openrag_agent.json index dcfcb135..8ea5abbd 100644 --- a/flows/openrag_agent.json +++ b/flows/openrag_agent.json @@ -1492,7 +1492,7 @@ "show": true, "title_case": false, "type": "str", - "value": "" + "value": "OPENAI_API_KEY" }, "chunk_size": { "_input_type": "IntInput", @@ -1577,7 +1577,9 @@ "info": "Select the embedding model to use", "name": "model", "options": [ - "text-embedding-3-small" + "text-embedding-3-small", + "text-embedding-3-large", + "text-embedding-ada-002" ], "options_metadata": [], "placeholder": "", @@ -2225,7 +2227,7 @@ "show": true, "title_case": false, "type": "str", - "value": "" + "value": "OPENRAG-QUERY-FILTER" } }, "tool_mode": false @@ -2812,7 +2814,6 @@ "showNode": true, "type": "MCP" }, - "dragging": false, "id": "MCP-7EY21", "measured": { "height": 284, From e8a425702e499bdb0be01384c5bf52b8a5d5261c Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Thu, 9 Oct 2025 14:39:07 -0400 Subject: [PATCH 3/4] ingestion-flow --- flows/ingestion_flow.json | 45 +++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/flows/ingestion_flow.json b/flows/ingestion_flow.json index 911c3e38..79a4d7c4 100644 --- a/flows/ingestion_flow.json +++ b/flows/ingestion_flow.json @@ -1245,7 +1245,7 @@ ], "frozen": false, "icon": "binary", - "last_updated": "2025-10-04T02:17:01.272Z", + "last_updated": "2025-10-09T17:53:28.032Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -1550,7 +1550,7 @@ ], "frozen": false, "icon": "braces", - "last_updated": "2025-10-04T02:17:01.273Z", + "last_updated": "2025-10-09T17:53:28.034Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": {}, @@ -2912,7 +2912,7 @@ ], "frozen": false, "icon": "table", - "last_updated": "2025-10-04T02:17:01.354Z", + "last_updated": "2025-10-09T17:53:28.116Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -3328,7 +3328,7 @@ ], "frozen": false, "icon": "table", - "last_updated": "2025-10-04T02:17:01.355Z", + "last_updated": "2025-10-09T17:53:28.117Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -3744,7 +3744,7 @@ ], "frozen": false, "icon": "table", - "last_updated": "2025-10-04T02:17:01.355Z", + "last_updated": "2025-10-09T17:53:28.117Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -4129,19 +4129,46 @@ }, "selected": false, "type": "genericNode" + }, + { + "data": { + "id": "note-DCu9M", + "node": { + "description": "## README\n\nThis flow transforms raw documents into searchable knowledge stored in an OpenSearch vector database.\nThis [knowledge](https://docs.openr.ag/knowledge) serves as context that your [agents](https://docs.openr.ag/agents) draw upon to answer questions and perform tasks.\n\n* Data sources: This flow ingests data from OAuth connectors or can load from your local machine. For more, see [Ingest Knowledge](https://docs.openr.ag/knowledge#ingest-knowledge).\n* Docling ingestion: The [**Docling Serve** component](https://docs.openr.ag/ingestion) processes input documents by connecting to your instance of Docling serve. For more, see [Docling Ingestion](https://docs.openr.ag/ingestion).\n* Processing: The flow adds metadata through three [**DataFrame Operations** components](https://docs.langflow.org/components-processing#dataframe-operations) that add `filename`, `file_size`, and `mimetype` columns.\nThe **Split Text** component then splits the processed text into uniform, easily searchable chunks.\n* Embedding generation:The [**Embedding Model** component](https://docs.langflow.org/components-embedding-models) generates vector embeddings with the model you selected at [Application onboarding](https://docs.openr.ag/install#application-onboarding), and the [**OpenSearch** component](https://docs.langflow.org/bundles-elastic#opensearch) stores the processed documents and their embeddings in the documents index.\n* Metadata and ownership: The **Secret Input** components provide user context that is stored as metadata in OpenSearch. These fields are populated from OAuth configuration values, and enable multi-tenant document isolation in OpenSearch, so each user's documents remain private and traceable.\n\nFor more information, see the [OpenRAG docs](https://docs.openr.ag/ingestion#knowledge-ingestion-flows).\n", + "display_name": "", + "documentation": "", + "template": {} + }, + "type": "note" + }, + "dragging": false, + "height": 439, + "id": "note-DCu9M", + "measured": { + "height": 439, + "width": 1000 + }, + "position": { + "x": -538.3997974029603, + "y": 1984.9915833571447 + }, + "resizing": true, + "selected": true, + "type": "noteNode", + "width": 1000 } ], "viewport": { - "x": 227.3737875665738, - "y": -299.1651660660417, - "zoom": 0.43587407227641217 + "x": 439.0828210185154, + "y": -485.0911154471861, + "zoom": 0.5133513373758299 } }, "description": "Load your data for chat context with Retrieval Augmented Generation.", "endpoint_name": null, "id": "5488df7c-b93f-4f87-a446-b67028bc0813", "is_component": false, - "last_tested_version": "1.6.3.dev0", + "last_tested_version": "1.6.3.dev1", "name": "OpenSearch Ingestion Flow", "tags": [ "openai", From 36f4d08adee23c05d75e167ac41af183ca012364 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Thu, 9 Oct 2025 14:51:52 -0400 Subject: [PATCH 4/4] position --- flows/ingestion_flow.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flows/ingestion_flow.json b/flows/ingestion_flow.json index 79a4d7c4..9b47120d 100644 --- a/flows/ingestion_flow.json +++ b/flows/ingestion_flow.json @@ -1245,7 +1245,7 @@ ], "frozen": false, "icon": "binary", - "last_updated": "2025-10-09T17:53:28.032Z", + "last_updated": "2025-10-09T18:49:29.648Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -1550,7 +1550,7 @@ ], "frozen": false, "icon": "braces", - "last_updated": "2025-10-09T17:53:28.034Z", + "last_updated": "2025-10-09T18:49:29.649Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": {}, @@ -2912,7 +2912,7 @@ ], "frozen": false, "icon": "table", - "last_updated": "2025-10-09T17:53:28.116Z", + "last_updated": "2025-10-09T18:49:29.738Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -3328,7 +3328,7 @@ ], "frozen": false, "icon": "table", - "last_updated": "2025-10-09T17:53:28.117Z", + "last_updated": "2025-10-09T18:49:29.739Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -3744,7 +3744,7 @@ ], "frozen": false, "icon": "table", - "last_updated": "2025-10-09T17:53:28.117Z", + "last_updated": "2025-10-09T18:49:29.740Z", "legacy": false, "lf_version": "1.6.3.dev0", "metadata": { @@ -4153,15 +4153,15 @@ "y": 1984.9915833571447 }, "resizing": true, - "selected": true, + "selected": false, "type": "noteNode", "width": 1000 } ], "viewport": { - "x": 439.0828210185154, - "y": -485.0911154471861, - "zoom": 0.5133513373758299 + "x": 502.99612621025017, + "y": -497.01724621189965, + "zoom": 0.5248650535598084 } }, "description": "Load your data for chat context with Retrieval Augmented Generation.",