Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Visualize] Add custom instruction #218 #280

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

joriskalz
Copy link
Contributor

#218 Implement Custom Instruction Input for Diagram Generation

This pull request introduces a feature to enhance the Visualize module's functionality by allowing users to input custom instructions for diagram generation. Previously, the module did not consider user-specific instructions and only tried to generate valid diagrams in PlantUML/Mermaid languages without user hints. With this update, users can now guide the diagram generation process more directly.

Changes made:

  • Added an input box for custom instructions, consistent with the existing UI design (label on top, input field below).
  • When provided, the custom instruction is intelligently mixed into the diagram generation prompt at an appropriate place.
  • This feature responds to the need expressed in issue #218.

Files changed:

DiagramsModal.tsx: Included a new FormControl for custom instruction input.
diagrams.data.ts: Altered the bigDiagramPrompt function to integrate the customInstruction string.

This update aims to provide users with the flexibility to tailor diagram generation to their specific needs, enabling more precise and meaningful visualizations.

Looking forward to feedback and suggestions for any improvements.

Screenshot:
Bild 16 12 23 um 23 34

Copy link

vercel bot commented Dec 16, 2023

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

Name Status Preview Updated (UTC)
big-agi ✅ Ready (Inspect) Visit Preview Dec 16, 2023 10:38pm

@enricoros enricoros self-requested a review December 18, 2023 20:17
@enricoros enricoros merged commit 566ba36 into enricoros:main Dec 18, 2023
1 check passed
@enricoros
Copy link
Owner

Great job @joriskalz, thanks for contributing this - works great!

@enricoros enricoros added this to the 1.8.0 milestone Dec 18, 2023
@enricoros enricoros mentioned this pull request Dec 20, 2023
20 tasks
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