You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
main.ts:7:15 - error TS2304: Cannot find name 'Ollama'.
7 .setModel(new Ollama({ modelName: "llama3.2", baseUrl: 'http://localhost:11434' }))
~~~~~~
main.ts:12:34 - error TS2353: Object literal may only specify known properties, and 'urlOrContent' does not exist in type 'BaseLoader<Record<string, string | number | boolean>, Record<string, unknown>>'.
12 await ragApplication.addLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' })
~~~~~~~~~~~~
main.ts:13:34 - error TS2353: Object literal may only specify known properties, and 'urlOrContent' does not exist in type 'BaseLoader<Record<string, string | number | boolean>, Record<string, unknown>>'.
13 await ragApplication.addLoader({ urlOrContent: 'https://en.wikipedia.org/wiki/Elon_Musk' })
~~~~~~~~~~~~
at createTSError (/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:859:12)
at reportTSError (/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:863:19)
at getOutput (/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1077:36)
at Object.compile (/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1433:41)
at Module.m._compile (/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1551:10)
at Object.require.extensions.<computed> [as .ts] (/Users/user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Function.Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14) {
diagnosticCodes: [ 2304, 2353, 2353 ]
}
Is there something I am missing?
The text was updated successfully, but these errors were encountered:
Issue with current documentation:
When using the quickstart code for local development:
And a package.json of:
Running using
npx ts-node main.ts
returns:Is there something I am missing?
The text was updated successfully, but these errors were encountered: