In this article
Type conversion resolves a port contract; it does not decide which source fields the answer needs or prove that the converted message contains them.
Identify structure before reconnecting ports
A web-reading component returns rows containing page text, title, and URL, while a prompt expects a Message. The connection cannot be repaired by renaming the component. Langflow’s Type Convert guide explains conversion between JSON, Table, and Message representations. First inspect the actual output so the chosen conversion reflects the data rather than only making the diagram connect.
Understand the visible type names
The data-type reference explains that older Data and DataFrame ports were renamed JSON and Table, with backward compatibility. Some examples and internal labels retain the earlier names. Compare their meaning and installed version instead of assuming every old name identifies an incompatible payload. A Message primarily carries text and can include message metadata; a Table represents rows and columns with different downstream possibilities.
Check the primary text field
Structured JSON data has a text_key identifying its primary text and a fallback when that field is missing. A record containing a long passage under another key may therefore appear populated while its selected text representation is empty or incomplete. Inspect the fields needed for the task, including the page URL when attribution matters. Conversion does not infer an evidence policy from every available metadata field; choose and inspect the representation that the prompt will actually receive.
Select the intended output explicitly
The component reference distinguishes components emitting multiple ports from those requiring selection of an output type. Type Convert changes its output port according to the chosen type. A model component can also expose a response Message or a LanguageModel object, which serve different purposes. Check the selected port and hover information before diagnosing the downstream model. Inspect output after conversion rather than assuming a successful run proves all source content survived.
Verify evidence at the prompt boundary
Use a short source record with a distinctive clause and URL, then inspect the converted Message and final prompt inputs. Confirm both the necessary text and its attribution remain available. The message-content contract guide illustrates why representation matters, while citation coverage tests supported claims. Keep a typed transformation separate from the later judgment that an answer faithfully uses the evidence; both are needed for a useful document workflow.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.