-
Notifications
You must be signed in to change notification settings - Fork 337
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
Centralize and Internationalize System Prompts Across Adapter #571
Comments
Hi @michel-heon , I recently merged the following which reduces the prompts for Bedrock by using a common solution for various models. Regarding the update of prompts. An other issue is also suggesting a way to modify the prompts but using a registry: #334 |
Hello @charles-marion |
Hi @charles-marion |
This issue is stale because it has been open for 60 days with no activity. |
Description :
Currently, system prompts are scattered throughout the codebase and are only available in English. This setup makes it difficult to manage and internationalize prompts, especially when scaling to new languages or integrating multiple adapters. We propose centralizing the system prompts into a single module for easier management and allowing for internationalization.
Objective :
Affected Adapters:
azure-openai
mistral
claude
titan
llama
Proposed Solution:
system_prompts.py
to store and manage all system prompts./lib/model-interfaces/langchain/functions/request-handler/adapters/base/base.py
:get_prompt
get_condense_question_prompt
get_qa_prompt
These methods will fetch the system prompts from the new
system_prompts.py
class to centralize and simplify prompt management.Steps for Implementation:
system_prompts.py
to store all system prompts.system_prompts.py
class.system_prompts.py
.Expected Outcome:
system_prompts.py
.Environment Information:
azure-openai
,mistral
,claude
,titan
,llama
in in/lib/model-interfaces/langchain/functions/request-handler/adapters/
Additional Information:
Cela permet d'expliquer clairement la problématique, l'objectif, et la solution envisagée pour les contributeurs du projet.
The text was updated successfully, but these errors were encountered: