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

Add the global and local prompts/models support #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dorbanianas
Copy link
Member

@dorbanianas dorbanianas commented Dec 12, 2024

This pull request introduces support for managing global and local prompts/models. This implementation is based on the requested feature outlined in #96.

The key features include:

  1. Definition of Global and Local Prompts/Models:

    • Global Prompts/Models:
      • Created using CREATE GLOBAL PROMPT or CREATE GLOBAL MODEL.
      • Shared across different databases.
    • Local Prompts/Models:
      • Created using CREATE LOCAL PROMPT, CREATE PROMPT, or equivalent for models.
      • Default to local if no type is specified.
      • Limited to a single database.
  2. State Transition Support:

    • Users can toggle a prompt/model's state between global and local using:
      • UPDATE PROMPT 'prompt_name' TO GLOBAL;
      • UPDATE PROMPT 'prompt_name' TO LOCAL;
  3. Naming Constraints:

    • Prompt and model names must be unique across both global and local types, ensuring no conflicts.
  4. Simplified Update and Delete Operations:

    • Operations such as UPDATE and DELETE do not require specifying the type of prompt/model (global or local).
    • If the type is specified, the system will handle it appropriately.

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.

1 participant