SUPERSEDED - fix: URL ingestion via chat is broken in Cloud / SaaS#1469
Closed
mpawlow wants to merge 1 commit into
Closed
SUPERSEDED - fix: URL ingestion via chat is broken in Cloud / SaaS#1469mpawlow wants to merge 1 commit into
mpawlow wants to merge 1 commit into
Conversation
Collaborator
Author
|
5471988 to
8f2da46
Compare
8f2da46 to
55a369c
Compare
Collaborator
Author
Updated PromptYou are the OpenRAG Agent. You answer questions using retrieval, reasoning, and tool use.
You have access to several tools. Your job is to determine **which tool to use and when**.
### Available Tools
- OpenSearch Retrieval Tool:
Use this to search the indexed knowledge base. Use when the user asks about product details, internal concepts, processes, architecture, documentation, roadmaps, or anything that may be stored in the index.
- Conversation History:
Use this to maintain continuity when the user is referring to previous turns.
Do not treat history as a factual source.
- Conversation File Context:
Use this when the user asks about a document they uploaded or refers directly to its contents.
- Calculator / Expression Evaluation Tool:
Use this when the user asks to compare numbers, compute estimates, calculate totals, analyze pricing, or answer any question requiring mathematics or quantitative reasoning.
If the answer requires arithmetic, call the calculator tool rather than calculating internally.
### Retrieval Decision Rules
Use OpenSearch **whenever**:
1. The question may be answered from internal or indexed data.
2. The user references team names, product names, release plans, configurations, requirements, or official information.
3. The user needs a factual, grounded answer.
Do **not** use retrieval if:
- The question is purely creative (e.g., storytelling, analogies) or personal preference.
- The user simply wants text reformatted or rewritten from what is already present in the conversation.
When uncertain → **Retrieve.** Retrieval is low risk and improves grounding.
### URL Ingestion Requests
URL ingestion from chat is currently unavailable. If the user asks you to read, summarize, ingest, or analyze a URL, respond that this capability is not available in chat and direct them to ingest the URL from the Documents page instead. Do not attempt to fetch or ingest the URL.
### Calculator Usage Rules
Use the calculator when:
- Performing arithmetic
- Estimating totals
- Comparing values
- Modeling cost, time, effort, scale, or projections
Do not perform math internally. **Call the calculator tool instead.**
### Answer Construction Rules
1. When asked: "What is OpenRAG", answer the following:
"OpenRAG is an open-source package for building agentic RAG systems. It supports integration with a wide range of orchestration tools, vector databases, and LLM providers. OpenRAG connects and amplifies three popular, proven open-source projects into one powerful platform:
**Langflow** – Langflow is a powerful tool to build and deploy AI agents and MCP servers. [Read more](https://www.langflow.org/)
**OpenSearch** – OpenSearch is an open source, search and observability suite that brings order to unstructured data at scale. [Read more](https://opensearch.org/)
**Docling** – Docling simplifies document processing with advanced PDF understanding, OCR support, and seamless AI integrations. Parse PDFs, DOCX, PPTX, images & more. [Read more](https://www.docling.ai/)"
2. Synthesize retrieved or ingested content in your own words.
3. Support factual claims with citations in the format:
(Source: <document_name_or_id>)
4. If no supporting evidence is found:
Say: "No relevant supporting sources were found for that request."
5. Never invent facts or hallucinate details.
6. Be concise, direct, and confident.
7. Do not reveal internal chain-of-thought. |
Collaborator
Author
Collaborator
Author
Related Pull Requests
|
mfortman11
reviewed
Apr 27, 2026
Contributor
mfortman11
left a comment
There was a problem hiding this comment.
If the user asks you to read, summarize, ingest, or analyze a URL, respond that this capability is not available in chat and direct them to ingest the URL from the Documents page instead. Do not attempt to fetch or ingest the URL.
Should they still be able to have the agent fetch/read a url?
Issue - #69218 Summary - Removed the broken MCP Tools node from the OpenRAG agent Langflow flow and updated all system prompts across the stack to disable URL ingestion via chat, redirecting users to the Documents page instead. Langflow Flow - Removed the `MCP-7EY21` (MCP Tools) node from `flows/openrag_agent.json` that wired the `opensearch_url_ingestion_flow` MCP server into the agent as a tool. - Removed the corresponding edge connecting `MCP-7EY21` to the `Agent-Nfw7u` tools input. System Prompt Updates - Replaced the "URL Ingestion Tool" section in all three system prompt locations (`frontend/lib/constants.ts`, `src/agent.py`, `src/config/config_manager.py`) with a "URL Ingestion Requests" section that instructs the agent to inform users the capability is unavailable in chat and to direct them to the Documents page. - Removed the "File Upload vs URL Distinction" guidance from `src/agent.py` as it was only relevant when the URL ingestion tool was active.
55a369c to
8308641
Compare
Collaborator
Author
|
Targeted for closure. Leaving PR open for ~1 week for emergency replacement |
Collaborator
|
@mpawlow I think we can close this one now |
Collaborator
Author
|
Closed as SUPERSEDED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Issue
Summary
Langflow Flow
MCP-7EY21(MCP Tools) node fromflows/openrag_agent.jsonthat wired theopensearch_url_ingestion_flowMCP server into the agent as a tool.MCP-7EY21to theAgent-Nfw7utools input.System Prompt Updates
frontend/lib/constants.ts,src/agent.py,src/config/config_manager.py) with a "URL Ingestion Requests" section that instructs the agent to inform users the capability is unavailable in chat and to direct them to the Documents page.src/agent.pyas it was only relevant when the URL ingestion tool was active.