Developer forum

Forum » Dynamicweb 10 » Prompts menu
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have started configuring the AI text generation on a project and I am blocked at the "Prompts" definition.
In the manual this section is mentioned under System/Administration/AI, but I only have generator configurations and Online translation service:

Do I need to enable a feature/setting?

Thank you,
Adrian


Replies

 
Michael Knudsen
Reply

Hello Adrian,

- do you have AI in the licens?  Could be the reason why you can't find it.

Br. Michael Knudsen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply
Hi Michael,
It is a full trial license.
I could configure the Translation and Text generation sections, but I cannot find the Prompt section.
Adrian
 
Michael Knudsen
Reply

Hello Adrian,

- looks like this on my site with AITextGeneration in the licens, so maybe a bug in the Trial licens?

Br. Michael Knudsen

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply
This post has been marked as an answer

Hi Adrian,

The reason you don't have the prompts node is that we wanted to have the functionality a bit, so we would come with some default prompts instead, so it wouldn't require that much for a user to get started with using AI, and it would be possible to set up for non-technical people, so the node was hidden (maybe a bit too early).
But there's a small workaround.... If you add a prompt in the AiPrompt-table, the node will show up again inside settings, and you can define the rest of the prompts from UI.

I hope it helps.

Best regards,

Steffen

Votes for this answer: 1
 
Søren Nielsen
Reply

Hi - I have the same problem.
When I try to insert a Prompt into the AiPrompt table, using this statement:

INSERT INTO AiPrompt (PromptId, PromptName, PromptDescription, PromptTaskText, PromptUseContext, PromptTemperature, PromptMaxTokens, PromptIsModification)
VALUES (2, 'Fiskeri Lang Tekst', 'Fiskeri Lang Tekst', 'Skriv en beskrivelse af produktet. Nævn hvor godt det er til fiskeri.', 0, 1.0, 200, 0);

I get this error:

Cannot insert explicit value for identity column in table 'AiPrompt' when IDENTITY_INSERT is set to OFF.

This StackOverflow answer suggest i try to turn of this protection of the Identity column.
Is this also DynamicWebs suggested solution to this problem?

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Soren,

Maybe you can try by removing  PromptId from your insert.
Adrian

 
Søren Nielsen
Reply

Nevermind, it is possible to go to the prompt menu by going directly to the url:

https://<DW-host>.com/Admin/UI/Settings/PromptList?Type=PromptAll

 

 

You must be logged in to post in the forum