GenkitG
Genkit2mo ago
4 replies
uncertain-scarlet

Hey everyone i am using

Hey everyone i am using

marketSummarizer := genkit.LookupPrompt(config.AI, "market_summarizer")

To load a summarizer from prompt and mapping input as follows

// Prepare input data input := map[string]any{ "market_name": market.Name, "market_description": market.Description, }

and use this to execute it

resp, err := marketSummarizer.Execute(ctx, ai.WithInput(input))

Now the problem is once i run the server and send inputs sequentially the second input is rendered but changes are not reflecting on prompt its using old ran input.

Do anyone face this? Or should i use LoadPrompt instead of LookupPrompt to refresh the cache or something?
Was this page helpful?