Generative AI
The Generate AI works as a communication channel between your Vector database and Large Language Model (LLM). It carries your prompt/action to the vector database, retrieves a chunk of data based on the prompt/command, forwards it to the LLM for it to process, and finally returns the processed data back to the field.
GenAI
POST
https://ai.contentstack.com/brand-kits/v1/genai/The GenAI request carries prompts, processes them, retrieves relevant data, and returns the processed data.
To configure the permissions for your application via OAuth, include the brand-kits:read scope.
Here’s an example of the Request Body for using GenAI request:
{
"prompt": "Enter your prompt",
"knowledge_vault": true,
"voice_profile_uid":"cs************d"
}Sample Request
{
"prompt": "Write about Contentstack in 50 words.",
"knowledge_vault": true,
"voice_profile_uid": "cs************d"
}Sample Response
Status|200 OK
Streaming dictionary response