SAP-samples / btp-cap-genai-rag

Explore this repository for GenAI samples on SAP Business Technology Platform (SAP BTP). We provide examples for single and multitenant versions, showcasing integration of LLMs via SAP AI Core, LangChain in SAP CAP, and advanced techniques like Retrieval Augmented Generation (RAG).
https://discovery-center.cloud.sap/refArchDetail/ref-arch-open-ai
Apache License 2.0
67 stars 29 forks source link

Not able to push sample mails #23

Closed shumagundam closed 4 months ago

shumagundam commented 5 months ago

I was able to execute the GET XSUAA TOKEN request using requests-btp-private.htpp file and successfully retrieved the xsuaa token. But when I tried to execute ADD MAILS request, I received "Internal Server Error 500". Further checking the logs on "ai-srv-dev", it appears the error is related to undefined property on mail-insights-service.js line 190 Screenshot 2024-06-10 at 10 28 41 AM

kay-schmitteckert commented 5 months ago

Hi @shumagundam, looking at your other logs, I see a lot of 403. It seems that any part of the flow is not configured properly and my assumption would be the connection from CAP to SAP AI Core and the LLMs. Can you check with SAP AI Launchpad (or with the API of SAP AI Core) if the resource group and model deployments are available? If so, can you double check your destination pointing to the SAP AI Core instance?

Best Kay