cancel
Showing results for 
Search instead for 
Did you mean: 

RAG Quickstart Sample app using CAP LLM Plugin: Error while generating and storing vector embeddings

MKM
Active Participant
0 Kudos
123

Hello Experts

I'm encountering an issue while setting up my SAP RAG Quickstart sample application for hybrid testing. I've configured the destination service (rag-quick-start-app-destination-service) and my server module (rag-quick-start-app-srv) in my MTA deployment descriptor.

rag-quickstart-app 

I've ensured the destination binding is correctly configured, leveraging the service key information of my AI Core instance. My cds configuration in package.json is also set up to use this destination (named aicore-destination for the GenAI Hub).

However, during local testing (hybrid scenario), my application seems unable to read or resolve the destination information.

***********************************************************************************************

Received the request to split the document test.pdf and store it into SAP HANA Cloud!

Temporary PDF File restored and saved to: /home/user/projects/rag-quickstart-app/srv/test.pdf
Splitting the document into text chunks.
Documents split into 2 chunks.
Leveraging the CAP LLM plugin to generate the vector embeddings for the text chunks.

Error while generating and storing vector embeddings: Error: No configuration found for 'cds.requires.destination'
    at _required (/home/user/projects/rag-quickstart-app/node_modules/@sap/cds/lib/srv/factory.js:34:80)
    at new ServiceFactory (/home/user/projects/rag-quickstart-app/node_modules/@sap/cds/lib/srv/factory.js:20:16)
    at connect.to (/home/user/projects/rag-quickstart-app/node_modules/@sap/cds/lib/srv/cds-connect.js:48:17)
    at async CAPLLMPlugin.getEmbeddingWithConfig (/home/user/projects/rag-quickstart-app/node_modules/cap-llm-plugin/srv/cap-llm-plugin.js:153:27)
    at async ApplicationService.<anonymous> (/home/user/projects/rag-quickstart-app/srv/embedding-storage.js:129:33)
    at async next (/home/user/projects/rag-quickstart-app/node_modules/@sap/cds/lib/srv/srv-dispatch.js:68:17)
    at async ApplicationService.handle (/home/user/projects/rag-quickstart-app/node_modules/@sap/cds/lib/srv/srv-dispatch.js:66:10)
    at async ApplicationService.handle (/home/user/projects/rag-quickstart-app/node_modules/@sap/cds/libx/_runtime/common/Service.js:106:16)
    at async /home/user/projects/rag-quickstart-app/node_modules/@sap/cds/libx/_runtime/cds-services/adapter/odata-v4/handlers/action.js:53:16

MKM_0-1745367361682.png

 

could anyone provide insights or suggestions on how to further troubleshoot this issue?

Accepted Solutions (0)

Answers (0)