Skip to content

feat(yaml workflow): yaml workflow representation + doc embeddings#646

Merged
icecrasher321 merged 60 commits intostagingfrom
feat/ask-docs
Jul 9, 2025
Merged

feat(yaml workflow): yaml workflow representation + doc embeddings#646
icecrasher321 merged 60 commits intostagingfrom
feat/ask-docs

Conversation

@Sg312
Copy link
Contributor

@Sg312 Sg312 commented Jul 9, 2025

Description

Available changes:

  • This pr adds a new yaml-based workflow representation. It adds workflow import/export functionality with yaml, and allows users to create new workflows from yaml files.
  • Adds docs embeddings and table migrations for internal docs

Changes behind ff:

  • Adds copilot, which is an in-workflow assistant
  • Internal doc search tool, which copilot can call to understand sim studio workflows
  • Internal get user workflow tool, which copilot can call to understand the user's workflow
  • Workflow yaml editor

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally and in CI (bun run test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have updated version numbers as needed (if needed)
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Security Considerations:

  • My changes do not introduce any new security vulnerabilities
  • I have considered the security implications of my changes

Additional Information:

Any additional information, configuration or data that might be necessary to reproduce the issue or use the feature.

@Sg312 Sg312 requested a review from icecrasher321 July 9, 2025 18:54
@vercel
Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 7:57pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Skipped (Inspect) Jul 9, 2025 7:57pm

@delve-auditor
Copy link

delve-auditor bot commented Jul 9, 2025

No security or compliance issues detected. Reviewed everything up to 3c61bc1.

Security Overview
  • 🔎 Scanned files: 49 changed file(s)
Detected Code Changes

The diff is too large to display a summary of code changes.

Reply to this PR with @delve-auditor followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Major implementation of YAML-based workflow system and documentation assistant functionality, featuring vector embeddings for semantic search and a new copilot feature.

  • Added robust YAML workflow support in apps/sim/lib/workflows/yaml-generator.ts with import/export capabilities and block relationship handling
  • Implemented vector-based documentation search through new docs_embeddings table and chunking system in apps/sim/lib/documents/docs-chunker.ts
  • Created copilot chat interface with documentation assistance in apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/copilot.tsx
  • Added workflow text editor with YAML/JSON switching in apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-text-editor/workflow-text-editor.tsx
  • Implemented migration structure for copilot_chats table with proper indexing and foreign key relationships in apps/sim/db/migrations/0052_fluffy_shinobi_shaw.sql

46 files reviewed, 70 comments
Edit PR Review Bot Settings | Greptile

addBlock: () => {}, // Not used in this path
addEdge: () => {}, // Not used in this path
applyAutoLayout: () => {
// Trigger auto layout after import
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this actually being triggered correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll address later

@icecrasher321 icecrasher321 merged commit 50595c5 into staging Jul 9, 2025
6 checks passed
@waleedlatif1 waleedlatif1 deleted the feat/ask-docs branch July 10, 2025 22:25
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
feat(yaml workflow): yaml workflow representation + doc embeddings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants