2024 Jul 20 11:26 PM - edited 2024 Jul 20 11:31 PM
I've installed the CAP LLM Plugin (v.1.3.3).
However, for the getRagResponse() and similaritySearch() methods, the db is not connected, even if I set in in the calling script.
For now I've put in the workaround to the plugin to connected to the db on init.
Any ideas why I need to forced the connect directly in the plugin?
try {
// Connect to the 'db' service
this.db = await cds.connect.to('db');
console.log('Database connection established.');
} catch (error) {
console.error('Failed to connect to the database:', error);
throw error;
}
Request clarification before answering.
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.