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

feat: system prompt variables (e.g. username, current datetime) #2349

Closed
spoutop opened this issue May 17, 2024 · 1 comment
Closed

feat: system prompt variables (e.g. username, current datetime) #2349

spoutop opened this issue May 17, 2024 · 1 comment
Milestone

Comments

@spoutop
Copy link

spoutop commented May 17, 2024

Is your feature request related to a problem? Please describe.
It would be nice if the model could personalize responses based on the current user's username. It would be more engaging and user-friendly if the model could address users by their names used when registering.

Describe the solution you'd like
I would like to pass the current username to the model's context window before sending the query so that the model can respond back with "Hi username." This would require modifying the backend to include the username in the context.

Describe alternatives you've considered
An alternative solution could be to create a middleware that intercepts the queries, inserts the username, and then forwards it to the model. Another option is to have the frontend handle username insertion before sending queries. A toggle option under Settings > Interface would be nice.

Additional context
Consideration to add more user data in the future would be nice like Age, Gender, etc for personalize responses.

@spoutop spoutop changed the title Pass Current Username to Model Context for Personalized Responses feat: Pass Current Username to Model Context for Personalized Responses May 17, 2024
@tjbck tjbck changed the title feat: Pass Current Username to Model Context for Personalized Responses feat: system prompt variables (e.g. username, location, current datetime) May 26, 2024
@tjbck tjbck added this to the v0.2.0 milestone May 26, 2024
@tjbck tjbck changed the title feat: system prompt variables (e.g. username, location, current datetime) feat: system prompt variables (e.g. username, current datetime) May 31, 2024
@tjbck
Copy link
Contributor

tjbck commented May 31, 2024

image

image

image

Added to latest dev, let me know if you encounter any issues!

@tjbck tjbck closed this as completed May 31, 2024
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

No branches or pull requests

2 participants