Skip to content

docs: user feedback items#9122

Merged
mendonk merged 6 commits into
mainfrom
docs-user-feedback-items
Jul 22, 2025
Merged

docs: user feedback items#9122
mendonk merged 6 commits into
mainfrom
docs-user-feedback-items

Conversation

@mendonk
Copy link
Copy Markdown
Collaborator

@mendonk mendonk commented Jul 21, 2025

Addressing some items from user feedback:

  1. Agent has internal memory that functions similarly to the message history component.
  2. MCP Server flows require a chat output component.
  3. Confirmed cache/db/config_dir directories with @italojohnny

Summary by CodeRabbit

  • Documentation
    • Expanded and clarified documentation for Agent memory, Message History, and flow storage locations, providing detailed default file paths for various platforms and installation types.
    • Updated environment variable, logging, and database storage documentation with precise location details for Desktop and OSS installations.
    • Added notes specifying that flows must include a Chat Output component to be used as MCP tools, improving clarity for MCP configuration and tutorials.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 21, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The documentation was updated across multiple files to clarify and expand details on default storage locations for databases, logs, and configuration files, with distinctions based on platform and installation method. Additional clarifications were added regarding MCP flow requirements and agent memory behavior. No changes were made to exported or public code entities.

Changes

Files/Groups Change Summary
docs/docs/Agents/agents.mdx Added section on Agent memory, detailing chat history storage, session grouping, and configuration.
docs/docs/Components/components-helpers.mdx Revised Message History component docs to clarify storage behavior and specify default SQLite paths for various platforms/installations.
docs/docs/Concepts/concepts-flows.mdx Updated flow storage location documentation with platform- and install-specific paths; removed Linux/WSL entry; clarified Windows path.
docs/docs/Configuration/environment-variables.mdx Updated LANGFLOW_CONFIG_DIR docs to specify distinct default paths for Desktop and OSS installs across platforms.
docs/docs/Develop/logging.mdx Expanded default log file location documentation with detailed paths for each platform and installation type.
docs/docs/Develop/memory.mdx Clarified and expanded default SQLite database file locations for different platforms and installation methods.
docs/docs/Concepts/mcp-server.mdx
docs/docs/Tutorials/mcp-tutorial.mdx
Added note: MCP flows must include a Chat Output component to be usable as MCP tools.

Estimated code review effort

1 (~6 minutes)

Suggested labels

documentation, size:M, lgtm

Suggested reviewers

  • italojohnny
  • aimurphy
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-user-feedback-items

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 21, 2025
@mendonk
Copy link
Copy Markdown
Collaborator Author

mendonk commented Jul 21, 2025

CONFIG_DIR may change with #8656

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 21, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 21, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🔭 Outside diff range comments (2)
docs/docs/Concepts/mcp-server.mdx (1)

1-4: Front-matter must include a description field

The docs guidelines require every page to start with at least title and description.
Please add a concise description to avoid breaking the docs build and search index.

 ---
 title:  Use Langflow as an MCP server
 slug: /mcp-server
+description: Learn how to expose Langflow flows as MCP server tools and connect clients.
 ---
docs/docs/Tutorials/mcp-tutorial.mdx (1)

1-4: Add missing description in front-matter

Same issue as above—lack of a description violates docs lint rules.

 ---
 title: Connect to MCP servers from your application
 slug: /mcp-tutorial
+description: Tutorial for wiring MCP servers into a Langflow application and calling them from code.
 ---
🧹 Nitpick comments (9)
docs/docs/Concepts/mcp-server.mdx (1)

28-31: Capitalize “Flow” in admonition title

Per the style guide, always capitalize Flow.
MCP flow requirementsMCP Flow requirements.

-:::important MCP flow requirements
+:::important MCP Flow requirements
docs/docs/Tutorials/mcp-tutorial.mdx (1)

36-38: Capitalize “Flow” in admonition title

Maintain consistent terminology: MCP Flow requirements.

-:::important MCP flow requirements
+:::important MCP Flow requirements
docs/docs/Develop/memory.mdx (1)

52-53: Fix typo in alt-text

ReditRedis.

-![Sample Flow storing Chat Memory in Redit](/img/component-message-history-external-memory.png)
+![Sample Flow storing Chat Memory in Redis](/img/component-message-history-external-memory.png)
docs/docs/Develop/logging.mdx (1)

12-15: Minor formatting & consistency issues

  1. Add a space after the colon so the Markdown renders correctly.
  2. Keep path bullets consistent with the Memory page (include “(Python version may vary)” for the site-packages entry).
  3. Replace <username> vs <name> mismatch.
-**macOS Desktop**:`/Users/<username>/.langflow/cache`
+**macOS Desktop**: `/Users/<username>/.langflow/cache`

-**Windows Desktop**:`C:\Users\<username>\AppData\Roaming\com.Langflow\cache`
+**Windows Desktop**: `C:\Users\<username>\AppData\Roaming\com.Langflow\cache`

-**OSS macOS/Windows/Linux/WSL (uv pip install)**: `<path_to_venv>/lib/python3.12/site-packages/langflow/cache`
+**OSS macOS/Windows/Linux/WSL (uv pip install)**: `<path_to_venv>/lib/python3.X/site-packages/langflow/cache` (Python version may vary)
docs/docs/Components/components-helpers.mdx (2)

58-64: Align path list wording with other pages

To avoid reader confusion, adopt the same bullet terminology used elsewhere (“macOS Desktop”, “Windows Desktop”, etc.) and keep the Python-version note.

-**Windows Desktop**: `C:\Users\<name>\AppData\Roaming\com.Langflow\data\langflow.db`
+**Windows Desktop**: `C:\Users\<username>\AppData\Roaming\com.Langflow\data\langflow.db`

78-81: Typo: Redis

The component example references “Redit Chat Memory”. Replace with “Redis Chat Memory” for consistency with component names.

docs/docs/Configuration/environment-variables.mdx (1)

195-195: Consistency & spacing

Same bullet list comments as earlier: add spaces after colons, update <username> placeholder, and mention “Python version may vary” for the site-packages path.

docs/docs/Concepts/concepts-flows.mdx (2)

86-89: Replace hard-coded Python version with a placeholder for maintainability

Using the explicit python3.12 segment hard-codes the documentation to a single Python release. Readers running a different version may assume the path is incorrect. Swap the literal version for a <python_version> placeholder (or similar) to keep the docs future-proof.

- **OSS macOS/Windows/Linux/WSL (uv pip install)**: `<path_to_venv>/lib/python3.12/site-packages/langflow/cache`
+ **OSS macOS/Windows/Linux/WSL (uv `pip install`)**: `<path_to_venv>/lib/python<python_version>/site-packages/langflow/cache`

86-89: Tighten wording for clarity & consistency

“uv pip install” reads like a shell fragment rather than prose and may puzzle newcomers. Consider rephrasing to match the other bullet labels:

- **OSS macOS/Windows/Linux/WSL (uv pip install)**:
+ **OSS macOS/Windows/Linux/WSL (installed with `uv pip`)**:

This keeps the action (installed with …) explicit and the tooling (uv) formatted as inline code, aligning with the style guide’s emphasis on clarity and consistent inline-code formatting.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3bb22b2 and 776b263.

📒 Files selected for processing (8)
  • docs/docs/Agents/agents.mdx (1 hunks)
  • docs/docs/Components/components-helpers.mdx (1 hunks)
  • docs/docs/Concepts/concepts-flows.mdx (1 hunks)
  • docs/docs/Concepts/mcp-server.mdx (1 hunks)
  • docs/docs/Configuration/environment-variables.mdx (1 hunks)
  • docs/docs/Develop/logging.mdx (1 hunks)
  • docs/docs/Develop/memory.mdx (1 hunks)
  • docs/docs/Tutorials/mcp-tutorial.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/docs/**/*.{md,mdx}

📄 CodeRabbit Inference Engine (.cursor/rules/docs_development.mdc)

docs/docs/**/*.{md,mdx}: All documentation content must be written in Markdown or MDX files located under docs/docs/, following the prescribed directory structure for guides, reference, how-to, concepts, and API documentation.
All documentation Markdown and MDX files must begin with a frontmatter block including at least title and description fields.
Use admonitions (:::tip, :::warning, :::danger) in Markdown/MDX files to highlight important information, warnings, or critical issues.
All images referenced in documentation must include descriptive alt text for accessibility.
All code examples included in documentation must be tested and verified to work as shown.
Internal links in documentation must be functional and not broken.
Content must follow the style guide: professional but approachable tone, second person voice, present tense, short paragraphs, sentence case headers, inline code with backticks, bold for UI elements, italic for emphasis, and parallel structure in lists.
Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Files:

  • docs/docs/Develop/logging.mdx
  • docs/docs/Concepts/mcp-server.mdx
  • docs/docs/Tutorials/mcp-tutorial.mdx
  • docs/docs/Components/components-helpers.mdx
  • docs/docs/Agents/agents.mdx
  • docs/docs/Configuration/environment-variables.mdx
  • docs/docs/Concepts/concepts-flows.mdx
  • docs/docs/Develop/memory.mdx
🧠 Learnings (8)
📓 Common learnings
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: Before deployment, documentation must be reviewed for accuracy, completeness, clarity, and navigation, including checking for broken links and up-to-date screenshots.
docs/docs/Develop/logging.mdx (3)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.

docs/docs/Concepts/mcp-server.mdx (1)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

docs/docs/Tutorials/mcp-tutorial.mdx (2)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.

docs/docs/Components/components-helpers.mdx (1)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/testing.mdc:0-0
Timestamp: 2025-07-21T14:16:14.092Z
Learning: Applies to src/backend/tests/**/*.py : Test Langflow's Message objects and chat functionality in backend Python tests by asserting correct instantiation and property values.

docs/docs/Configuration/environment-variables.mdx (3)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.

docs/docs/Concepts/concepts-flows.mdx (3)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.

docs/docs/Develop/memory.mdx (2)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.011Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/backend_development.mdc:0-0
Timestamp: 2025-07-18T18:25:54.474Z
Learning: Applies to src/backend/base/langflow/services/database/models/**/*.py : Place database models in src/backend/base/langflow/services/database/models/

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-and-deploy
🔇 Additional comments (1)
docs/docs/Develop/memory.mdx (1)

20-24: Confirm DB file location accuracy

<path_to_clone>/src/backend/base/langflow/langflow.db may not match the runtime-created DB path (often placed inside langflow/ only when SAVE_DB_IN_CONFIG_DIR is false).
Please verify this path (and the identical lists in other docs) against the value returned by langflow.settings.get_config_dir()/ "langflow.db"; otherwise users will look in the wrong place.

Comment thread docs/docs/Agents/agents.mdx
Copy link
Copy Markdown
Collaborator

@aimurphy aimurphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of questions but otherwise LGTM. Very useful info to have.

Comment thread docs/docs/Agents/agents.mdx
Comment thread docs/docs/Components/components-helpers.mdx
@github-actions github-actions Bot added the lgtm This PR has been approved by a maintainer label Jul 21, 2025
Comment thread docs/docs/Tutorials/mcp-tutorial.mdx Outdated
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 22, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 22, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 22, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 22, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 22, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 22, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot removed the documentation Improvements or additions to documentation label Jul 22, 2025
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 22, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 22, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Agent Memory looks Good.
Approving with comments.

@mendonk mendonk added this pull request to the merge queue Jul 22, 2025
Merged via the queue into main with commit 8f84d91 Jul 22, 2025
15 checks passed
@mendonk mendonk deleted the docs-user-feedback-items branch July 22, 2025 16:33
@mendonk
Copy link
Copy Markdown
Collaborator Author

mendonk commented Jul 23, 2025

@edwinjosechittilappilly Confirming starting with LANGFLOW_DATABASE_URL=postgresql://... includes the Agent's messages output in the messages table with no additional configuration.
-[ RECORD 2 ]--+
timestamp | 2025-07-23 16:52:21
sender | Machine
sender_name | Agent
session_id | fee60b6e-f7c9-471e-86dd-b6bbe01e523a

2getsandesh pushed a commit to 2getsandesh/langflow-IBM that referenced this pull request Aug 6, 2025
* db-location-and-agent-memory

* cleanup

* postgresql-for-agent-memory

* postgresql-in-message-history

* remove-mcp-tutorial-note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants