-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat(experimental): Add Configurable System Prompts Feature #744
feat(experimental): Add Configurable System Prompts Feature #744
Conversation
@thecodacus My day just got better, cant wait to use this. |
works on windows. |
we need code template import after this. I would like to add starter templates which will super charge the project outputs |
that would take this to the next level. |
But can't we already use them with github import? It has link like this In reality its this repo I just go to bolt.diy and import git Bolt.new works faster for this for some reason |
yes but thats manual selection. I am talking about
another scenario
basically based on user's qurey it should select the best starter template and start. currently lots of users are saying they are not getting good results compared to bolt.new this is the reason. |
cuz they are not cloning it using browser resources 😅 |
Even if they were pulling on server side and then streaming it to client it would be the same no? Another is some form of caching they may be do. |
I guess you mean dozen of templates for various setups than? That are very barebone? Like next.js starter, vue starter and so on? |
Yes exactly. it should have most of the skeleton ready. so that the llm does not have to write them. and the results will instantly become pretty nice I was building for this.. https://github.com/thecodacus/vite-react-ts-template |
yes isomorphic-git is trying to do an actual git operation in browser, and using a simulated file system plus it also needs to get loaded and initialized, where as they are using github api it to pull all the files directly and them pushing it.. both has its pros and cons. |
Add Configurable System Prompts Feature
Overview
This PR introduces a dynamic system prompt configuration feature that allows users to select different LLM system prompts based on their needs. This enhancement provides flexibility in how the AI assistant behaves and processes requests, with initial testing showing promising results across models including GPT-4 and Claude 2.5 Coder 32k.
Key Changes
1. Prompt Library Implementation
PromptLibrary
class to manage different system prompts2. Settings Integration
promptId
state management in settings store3. Backend Integration
4. File Structure Updates
lib/common/prompts/
optimized.ts
for the experimental prompt versionTechnical Details
Prompt Library Structure
The
PromptLibrary
class provides:Settings Integration
promptStore
atom in settings storeTesting Results
Migration Impact
Future Improvements
How to Test
Preview
GPT4o:
Optimized.Prompt.gpt4o.mp4
qwen 2.5 Coder 32B
Optimized.Prompt.Qwen.mp4