Docs: refactor starter flows (#5384)

* refactor: Update documentation links and restructure starter projects to use cases

* feat: Add new redirects for use cases in Docusaurus configuration

* lint

* force-menu-collapse

* change-usecase-to-tutorial
This commit is contained in:
Mendon Kissling 2024-12-23 09:53:37 -05:00 committed by GitHub
commit 2c819dc0a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 45 additions and 21 deletions

View file

@ -31,7 +31,7 @@ Answer the question
{user_question}
```
When variables are added to a prompt template, new fields are automatically created in the component. These fields can be connected to receive text input from other components to automate prompting, or to output instructions to other components. An example of prompts controlling agents behavior is available in the [sequential tasks agent starter flow](/starter-projects-sequential-agent).
When variables are added to a prompt template, new fields are automatically created in the component. These fields can be connected to receive text input from other components to automate prompting, or to output instructions to other components. An example of prompts controlling agents behavior is available in the [sequential tasks agent starter flow](/tutorials-sequential-agent).
### Inputs

View file

@ -20,9 +20,9 @@ Langflow is an intuitive visual flow builder. This drag-and-drop interface allow
Langflow can be used for a wide range of AI applications, including:
* [Craft intelligent chatbots](/starter-projects-memory-chatbot)
* [Build document analysis systems](/starter-projects-document-qa)
* [Generate compelling content](/starter-projects-blog-writer)
* [Craft intelligent chatbots](/tutorials-memory-chatbot)
* [Build document analysis systems](/tutorials-document-qa)
* [Generate compelling content](/tutorials-blog-writer)
* [Orchestrate multi-agent applications](/starter-projects-simple-agent)
## Community and support

View file

@ -15,7 +15,7 @@ In any project, as long as there are [**Chat**](/components-io) being used, memo
To see and access this history of messages, Langflow features a component called [Message history](/components-helpers#memory-history). It retrieves previous messages and outputs them in structured format or parsed.
To learn the basics about memory in Langflow, check out the [Memory Chatbot](/starter-projects-memory-chatbot) starter example.
To learn the basics about memory in Langflow, check out the [Memory Chatbot](/tutorials-memory-chatbot) starter example.
Memories can be visualized and managed directly from the **Playground**. You can edit and remove previous messages to inspect and validate the AIs response behavior. You can remove or edit previous messages to get your models acting just right.
@ -72,7 +72,7 @@ This example stores and retrieves chat history from an [AstraDBChatMemory](/comp
### Connect the chat memory component to an external database
1. Load the [Memory Chatbot](/starter-projects-memory-chatbot) starter project.
1. Load the [Memory Chatbot](/tutorials-memory-chatbot) starter project.
This starter project extends the basic prompting flow to include a chat memory component.
2. Add the [Store Message](/components-helpers#store-message) component to the flow.
The **Store message** component stores messages in the external database.

View file

@ -1 +0,0 @@
{"position":2, "label":"Starter Projects"}

View file

@ -1,7 +1,7 @@
---
title: Blog Writer
sidebar_position: 1
slug: /starter-projects-blog-writer
slug: /tutorials-blog-writer
---
Build a Blog Writer flow for a one-shot application using OpenAI.

View file

@ -1,7 +1,7 @@
---
title: Document QA
sidebar_position: 2
slug: /starter-projects-document-qa
slug: /tutorials-document-qa
---

View file

@ -1,7 +1,7 @@
---
title: Memory Chatbot
sidebar_position: 3
slug: /starter-projects-memory-chatbot
slug: /tutorials-memory-chatbot
---

View file

@ -1,7 +1,7 @@
---
title: Sequential tasks agent
sidebar_position: 4
slug: /starter-projects-sequential-agent
slug: /tutorials-sequential-agent
---
Build a **Sequential Tasks Agent** flow for a multi-agent application using multiple **Agent** components.

View file

@ -1,7 +1,7 @@
---
title: Travel planning agent
sidebar_position: 8
slug: /starter-projects-travel-planning-agent
slug: /tutorials-travel-planning-agent
---
Build a **Travel Planning Agent** flow for an agentic application using the multiple Tool-calling agents.

View file

@ -39,7 +39,7 @@ const config = {
docs: {
routeBasePath: "/", // Serve the docs at the site's root
sidebarPath: require.resolve("./sidebars.js"), // Use sidebars.js file
sidebarCollapsed: false,
sidebarCollapsed: true,
beforeDefaultRemarkPlugins: [
[
remarkCodeHike,
@ -107,8 +107,11 @@ const config = {
from: "/getting-started-quickstart",
},
{
to: "/starter-projects-travel-planning-agent",
from: "/starter-projects-dynamic-agent/",
to: "/tutorials-travel-planning-agent",
from: [
"/starter-projects-dynamic-agent/",
"/starter-projects-travel-planning-agent",
],
},
{
to: "/workspace-overview",
@ -127,6 +130,22 @@ const config = {
to: "/configuration-global-variables",
from: "/settings-global-variables",
},
{
to: "/tutorials-sequential-agent",
from: "/starter-projects-sequential-agent",
},
{
to: "/tutorials-blog-writer",
from: "/starter-projects-blog-writer",
},
{
to: "/tutorials-memory-chatbot",
from: "/starter-projects-memory-chatbot",
},
{
to: "/tutorials-document-qa",
from: "/starter-projects-document-qa",
},
{
to: "/components-vector-stores",
from: "/components-rag",

View file

@ -14,13 +14,19 @@ module.exports = {
label: "Starter Projects",
items: [
'Starter-Projects/starter-projects-basic-prompting',
'Starter-Projects/starter-projects-blog-writer',
'Starter-Projects/starter-projects-document-qa',
'Starter-Projects/starter-projects-memory-chatbot',
'Starter-Projects/starter-projects-simple-agent',
'Starter-Projects/starter-projects-vector-store-rag',
'Starter-Projects/starter-projects-sequential-agent',
'Starter-Projects/starter-projects-travel-planning-agent',
'Starter-Projects/starter-projects-simple-agent',
],
},
{
type: "category",
label: "Tutorials",
items: [
'Tutorials/tutorials-blog-writer',
'Tutorials/tutorials-document-qa',
'Tutorials/tutorials-memory-chatbot',
'Tutorials/tutorials-sequential-agent',
'Tutorials/tutorials-travel-planning-agent',
],
},
{