No doubt Gen AI term has grabbed the attention of the whole world. And everyone now wants to try out its potential. Chat GPT, Google Gemini has become everyone’s personal assistant to get things drafted, to get ideas, to get potential solutions over technical error etc.
It has become a topic of discussion in every company and as a goal for individuals for next review meet 😉
But well, it’s interesting to know, how do these things work out.
Tried out our own SAP AI Core to get a hands-on by creating a chat assistant.
Purpose: To use ‘generative-ai-hub-sdk’ to access the ‘gpt-35-turbo’ LLM model from SAP's Generative AI Hub in AI Core
Few Pre-requisite Steps Required:
Once the desired LLM is deployed that will help to understand the text-based context, as its built using deep learning techniques, enabling to capture complex patterns in language based on various parameters.
Next went ahead with chat completion using the LangChain PromptTemplates. Also tried with memory using langchain.memory ConversationBufferWindowMemory.
ChatPromptTemplate helps to structure and format prompts to design multi turn interaction.
‘temperature’, ‘max_tokens’, and ‘top_p’ are parameters in a model that determines the behaviour or helps to fine tune the output.
Output:
May be a small start for people who are still yet to venture out…..
Learning References:
Learning how to use the SAP AI Core service on SAP Business Techn
Prompt LLMs in the generative AI hub in SAP AI Core & Launchpad | SAP Tutorials
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 123 | |
| 37 | |
| 36 | |
| 19 | |
| 17 | |
| 15 | |
| 12 | |
| 12 | |
| 10 | |
| 8 |