diff --git a/docs/docs/Components/components-prompts.md b/docs/docs/Components/components-prompts.md index 112a96151..26e018ea7 100644 --- a/docs/docs/Components/components-prompts.md +++ b/docs/docs/Components/components-prompts.md @@ -13,9 +13,9 @@ Prompts are a combination of natural language and variables created with curly b ## Use a prompt component in a flow -An example of modifying a prompt can be found in the [Quickstart](/get-started-quickstart#run-the-chatbot-with-retrieved-context), where a basic chatbot flow is extended to include a full vector RAG pipeline. +An example of modifying a prompt can be found in [Vector RAG starter flow](/vector-store-rag), where a basic chatbot flow is extended to include a full vector RAG pipeline. -![](/img/quickstart-add-document-ingestion.png) +![Vector RAG connected to a chatbot](/img/starter-flow-vector-rag.png) The default prompt in the **Prompt** component is `Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.` diff --git a/docs/docs/Get-Started/get-started-quickstart.md b/docs/docs/Get-Started/get-started-quickstart.md index db1dfecf2..dd0b134ff 100644 --- a/docs/docs/Get-Started/get-started-quickstart.md +++ b/docs/docs/Get-Started/get-started-quickstart.md @@ -4,188 +4,518 @@ slug: /get-started-quickstart --- import Icon from "@site/src/components/icon"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; -Get to know Langflow by building an OpenAI-powered chatbot application. After you've constructed a chatbot, add Retrieval Augmented Generation (RAG) to chat with your own data. +Get started with Langflow by loading a template flow, running it, and then serving it at the `/run` API endpoint. ## Prerequisites - [A running Langflow instance](/get-started-installation) -- [An OpenAI API key](https://platform.openai.com/) -- [An Astra DB vector database](https://docs.datastax.com/en/astra-db-serverless/get-started/quickstart.html) with: - - An Astra DB application token scoped to read and write to the database - - A collection created in [Astra](https://docs.datastax.com/en/astra-db-serverless/databases/manage-collections.html#create-collection) or a new collection created in the **Astra DB** component +- [An OpenAI API key](https://platform.openai.com/api-keys) -## Build the basic prompting flow +## Run the Simple Agent template flow -:::tip -If you prefer a pre-built flow, click **New Flow**, and then select **Basic Prompting**. +1. In Langflow, click **New Flow**, and then select the **Simple Agent** template. -Continue to [Run the basic prompting flow](#run-basic-prompting-flow). -::: +![Simple agent starter flow](/img/quickstart-simple-agent-flow.png) -1. From the Langflow dashboard, click **New Flow**, and then select **Blank Flow**. A blank workspace opens where you can build your flow. +The Simple Agent flow consists of an [Agent component](/components-agents) connected to [Chat I/O components](/components-io), a [Calculator component](/components-tools#calculator-tool), and a [URL component](/components-data#url). When you run this flow, you submit a query to the agent through the Chat Input component, the agent uses the Calculator and URL tools to generate a response, and then returns the response through the Chat Output component. -The Basic Prompting flow will look like this when it's completed: +Many components can be tools for agents, including [Model Context Protocol (MCP) servers](/mcp-server). The agent decides which tools to call based on the context of a given query. -![Completed basic prompting flow](/img/starter-flow-basic-prompting.png) +2. In the **Agent** component's settings, in the **OpenAI API Key** field, enter your OpenAI API key. +This guide uses an OpenAI model for demonstration purposes. If you want to use a different provider, change the **Model Provider** field, and then provide credentials for your selected provider. -To build the **Basic Prompting** flow, follow these steps: + Optionally, you can click