docs: refresh quickstart#8582
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe documentation was updated to shift the "Get Started" guide from building a basic chatbot flow to running a pre-built "Simple Agent" template via the Langflow API, with new code examples and API usage details. The prompt component documentation was also revised to reference the "Vector RAG starter flow" instead of the previous quickstart guide. Changes
Suggested labels
✨ Finishing Touches🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Build successful! ✅ |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (5)
docs/docs/Get-Started/get-started-quickstart.md (5)
41-41: Refine optional continuation wording
Consider a more engaging call-to-action, e.g.:“If you’d rather stay in the Langflow UI and build more flows, feel free to stop here.”
54-55: ConsistentgroupIdnaming
You have two separate<Tabs>blocks withgroupId="Language"andgroupId="Languages". For clarity, use consistent naming or lowercase (e.g.,groupId="language-chat") across both blocks.
57-86: Add a timeout to Python example
Prevent indefinite hangs by specifying atimeoutin the request:- response = requests.request("POST", url, json=payload, headers=headers) + response = requests.post(url, json=payload, headers=headers, timeout=10)
91-111: Validate JS response status before parsing
Add a check forresponse.okto handle non-2xx statuses explicitly:- fetch(url, options) - .then(response => response.json()) + fetch(url, options) + .then(response => { + if (!response.ok) throw new Error(`HTTP ${response.status}`); + return response.json(); + })
118-125: Replace hard tabs and add--failto curl
Markdown lint flags hard tabs. Also include--failso curl exits non-zero on HTTP errors:- curl --request POST \ - --url 'http://localhost:7860/api/v1/run/...?stream=false' \ - --header 'Content-Type: application/json' \ - --data '{ - "output_type": "chat", - "input_type": "chat", - "input_value": "hello world!" - }' + curl --fail --request POST \ + --url 'http://localhost:7860/api/v1/run/...?stream=false' \ + --header 'Content-Type: application/json' \ + --data '{ + "output_type": "chat", + "input_type": "chat", + "input_value": "hello world!" + }'
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
docs/static/img/quickstart-simple-agent-playground.pngis excluded by!**/*.pngdocs/static/img/starter-flow-simple-agent.pngis excluded by!**/*.png
📒 Files selected for processing (2)
docs/docs/Components/components-prompts.md(1 hunks)docs/docs/Get-Started/get-started-quickstart.md(1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/Get-Started/get-started-quickstart.md
[style] ~43-~43: Consider using an alternative to strengthen your wording.
Context: ...ate more flows within Langflow. If you want to learn how Langflow integrates into e...
(WANT_KEEN)
🪛 markdownlint-cli2 (0.17.2)
docs/docs/Get-Started/get-started-quickstart.md
122-122: Hard tabs
Column: 1
(MD010, no-hard-tabs)
123-123: Hard tabs
Column: 1
(MD010, no-hard-tabs)
124-124: Hard tabs
Column: 1
(MD010, no-hard-tabs)
125-125: Hard tabs
Column: 1
(MD010, no-hard-tabs)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build-and-deploy
🔇 Additional comments (6)
docs/docs/Get-Started/get-started-quickstart.md (4)
7-8: Confirm MDX tab imports
The<Tabs>and<TabItem>imports enable tabbed code examples in MDX. Ensure your Docusaurus theme is configured to support@theme/Tabsand@theme/TabItem.
10-10: Clear introduction to quickstart workflow
The opening line succinctly outlines loading, running, and exposing a flow via the/runendpoint.
17-19: Well-structured agent template section
The new “Run the agent template flow” heading and accompanying instructions are clear and actionable for users.
31-34: Illustrative Playground screenshot
The image and description effectively show the agent invoking the Calculator component. Good visual reinforcement.docs/docs/Components/components-prompts.md (2)
16-16: Verify the updated reference link
Please confirm that/starter-projects-vector-store-ragmatches the actual slug of the “Vector RAG starter flow” page.
18-18: Update alt text for new image
The new image better illustrates a vector RAG pipeline. The alt text is accurate and descriptive.
aimurphy
left a comment
There was a problem hiding this comment.
This was super informative and useful. I left my feedback as I went through and encountered questions at each step.
Add suggestions from first half Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
…-ai/langflow into docs-quickstart-refresh
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Build successful! ✅ |
|
Build successful! ✅ |
* content * Apply suggestions from code review Add suggestions from first half Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * icon-and-image * more-cleanup * replace-urls * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * Update quickstart guide to clarify script execution for curl snippet * clarify-tweaks * indentation * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * fix-broken-links * code-review --------- Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* content * Apply suggestions from code review Add suggestions from first half Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * icon-and-image * more-cleanup * replace-urls * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * Update quickstart guide to clarify script execution for curl snippet * clarify-tweaks * indentation * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * fix-broken-links * code-review --------- Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Quickstart preview build
Rewrite quickstart to "Run Simple agent in Langflow IDE -> expose as API endpoint -> run it with a python or js application".
TODO:
More info on output schema (done)
Add a little more info on how flows run, and message types
Add MCP server to more options (done)
Summary by CodeRabbit