Datasource Playground 💽
Last updated
Last updated
Much like its counterpart for Tools, the Data Source Playground serves as a dedicated testing environment. While similar in structure, it specifically focuses on Data Sources and omits the Variable Editor section. Essentially, it's a streamlined input-output interface that allows you to input a query and receive immediate results based on the available data within the Data Source. Below are the key components of the Data Source Playground:
Input Panel: This section exhibits the document or URL that has been inserted into the selected datasource during its creation. Additionally, it features a query input field where users can provide inputs to interact with the chosen datasource.
Output Panel: This section provides immediate visual feedback, showcasing the output generated by the Datasource in response to your query. The output panel comprises two distinct sections. The first is "Retrieved Data," presenting information fetched or obtained from an external source or database. The second is "Generated Response," showcasing the dynamic output produced by the application based on user inputs or actions within a controlled environment, commonly referred to as a playground.
Model Instructions: This section reveals the instructions provided to the chosen model during its creation, shaping its behavior. Similar to the tool's prompt template section, this area is not editable by default. If users wish to modify the instructions, they can click the "Edit" button within the playground screen. This action redirects users to the editing flow where they can make adjustments to the selected datasource.
Data Source Play History: This invaluable feature keeps a detailed record of all prior interactions with the Data Source. Data is neatly organized, cataloging both input queries and their resulting outputs. Additionally, our "Show Trace" functionality offers an in-depth look into the query processing pipeline, revealing each step that culminates in the final output. To make this tracking as smooth as possible, we've partnered with Langsmith.