Skip to content

templates: add note to hybrid search rag#8768

Merged
mendonk merged 3 commits into
mainfrom
templates-add-note-to-hybrid-search
Jun 30, 2025
Merged

templates: add note to hybrid search rag#8768
mendonk merged 3 commits into
mainfrom
templates-add-note-to-hybrid-search

Conversation

@mendonk
Copy link
Copy Markdown
Collaborator

@mendonk mendonk commented Jun 27, 2025

Add a note to Hybrid Search specifying the requirement for a hybrid-enabled collection.

Summary by CodeRabbit

  • New Features

    • Added a detailed note with quickstart instructions to the Hybrid Search RAG starter project for easier onboarding.
  • Improvements

    • Updated default values and metadata for database configuration fields.
    • Adjusted visibility of certain input fields in the UI for a cleaner experience.
    • Enhanced flow description and viewport layout for better clarity.

@mendonk mendonk self-assigned this Jun 27, 2025
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 27, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 27, 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 "Hybrid Search RAG" starter project JSON configuration was updated by regenerating node and edge IDs, modifying UI properties for certain inputs, updating metadata for the AstraDB dropdown, adding a documentation note node, adjusting viewport settings, and changing the flow description and flow ID. No component logic was altered.

Changes

File(s) Change Summary
src/backend/base/langflow/initial_setup/Hybrid Search RAG.json Regenerated node/edge IDs, changed UI input visibility, updated dropdown metadata, added note node, changed flow description and ID, adjusted viewport.

Suggested labels

size:S, enhancement, lgtm

Suggested reviewers

  • edwinjosechittilappilly
✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in Comment
  • Commit Unit Tests in branch templates-add-note-to-hybrid-search

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 auto-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.

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: 0

🧹 Nitpick comments (2)
src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json (2)

2838-2841: Viewport zoom bumped to ~0.53

Not a blocker, but the canvas now opens quite zoomed-out which might make nodes look tiny on smaller screens. Consider reverting to ~0.8–1.0 for better first-time usability.


1583-1594: Hard-coded organisation / database metadata – consider anonymising

options_metadata embeds:

org_id: "260f986d-e65c-4f05-94a3-7cebfcb867a3"
api_endpoint: "https://…apps.astra.datastax.com"

If this UUID / endpoint belongs to an internal tenant it might be better to strip or replace it with dummy data to avoid accidental leakage.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 13501a3 and 46a0aac.

📒 Files selected for processing (1)
  • src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json (25 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/backend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:23.880Z
Learning: Starter project files are auto-formatted after running 'langflow run'; these formatting changes can be committed or ignored as needed.
src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json (5)

undefined

<retrieved_learning>
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/backend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:23.880Z
Learning: Starter project files are auto-formatted after running 'langflow run'; these formatting changes can be committed or ignored as needed.
</retrieved_learning>

<retrieved_learning>
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.
</retrieved_learning>

<retrieved_learning>
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: Custom React Flow node types should be implemented as memoized components, using Handle components for connection points and supporting optional icons and labels.
</retrieved_learning>

<retrieved_learning>
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/testing.mdc:0-0
Timestamp: 2025-06-23T12:47:15.654Z
Learning: Mock external dependencies in tests to avoid reliance on real services, and use MockLanguageModel for language model components.
</retrieved_learning>

<retrieved_learning>
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/testing.mdc:0-0
Timestamp: 2025-06-23T12:47:14.709Z
Learning: Use mock classes such as MockLanguageModel to test language model integration without requiring external API calls.
</retrieved_learning>

🔇 Additional comments (3)
src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json (3)

1996-2006: options / required_inputs set to null – confirm schema expectation

LanguageModelComponent output objects now explicitly contain

"options": null,
"required_inputs": null

If the frontend / deserializer expects either an array (possibly empty) or the keys to be omitted, the null literal could raise a type-error at runtime (e.g., value.map is not a function).

Request a quick test-run in the playground to make sure the node renders and the flow can be saved/re-opened without JSON-schema validation errors.

Also applies to: 2018-2022


1259-1276: api_endpoint default cleared – double-check backward compatibility

The default Astra api_endpoint value was reset to an empty string while the field is hidden ("show": false).
Existing starter flows relied on the automatically populated endpoint after database selection; clearing it is fine as long as the field is always re-hydrated by reset_database_list / get_api_endpoint().

Please verify that:

  1. Selecting a database still auto-fills the endpoint.
  2. Saving / reloading the project does not result in null/undefined endpoints and subsequent connection failures.

2811-2832: 👍 Clear, actionable note added

The new markdown note successfully explains the hybrid-enabled collection prerequisite and quick-start steps. Great improvement to user onboarding!

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

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 30, 2025
@mendonk mendonk added this pull request to the merge queue Jun 30, 2025
Merged via the queue into main with commit b9d2665 Jun 30, 2025
68 of 71 checks passed
@mendonk mendonk deleted the templates-add-note-to-hybrid-search branch June 30, 2025 19:57
lucaseduoli pushed a commit that referenced this pull request Jul 1, 2025
add-note

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Khurdhula-Harshavardhan pushed a commit to JigsawStack/langflow that referenced this pull request Jul 1, 2025
add-note

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
jordanrfrazier pushed a commit that referenced this pull request Jul 3, 2025
add-note

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants