query = "I want to calculate a shortest path. How do I do that?"
prompt = promptTemplate.format(query=query, context=' '.join(df_context['TEXT'].astype('string')))
print(prompt)
response = ask_llm(prompt=prompt,
proxy_client=proxy_client)
print(response)
Tutorials: https://developers.sap.com/tutorials/ai-core-genai-hana-vector.html
Function
ask_llm()
has too many messages unrelated to what the function is actually doing.Currently:
Refactored:
Function call: