-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Quickstart code #165
Comments
Hi, this syntax is not supported. Please try using a loader -
In an older version of the library, dynamic loaders (without creating an explicit instance of the loader) was supported. This has been discontinued since version |
Hi,
Ok I will give that a try but you might want to update your quickstart.
Also it feels like there should be an `await` in there.
…On Wed, Nov 13, 2024 at 9:57 PM Adhityan K V ***@***.***> wrote:
Hi, this syntax is not supported. Please try using a loader -
ragApplication.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
In an older version of the library, dynamic loaders (without creating an
explicit instance of the loader) was supported. This has been discontinued
since version 0.1.x. This was necessary to enable the move to monorepos
but is expected to be re-enabled at a later point of time.
—
Reply to this email directly, view it on GitHub
<#165 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOASJVRWV76EPADHYMCSM6D2ANLDNAVCNFSM6AAAAABRQZZEX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGY4TGMBYGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes. The QuickStart is updated. And yes, the loaders need to be awaited. The quick start reflects this correctly now. |
🐛 Describe the bug
In Line 12:
ragApplication.addLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' })
it's causing this
Uncaught TypeError TypeError: loader.getUniqueId is not a function
at addLoader (c:\cygwin64\home\pguar\node\llm\node_modules.pnpm@[email protected]@langchain[email protected]\node_modules@llm-tools\embedjs\src\core\rag-application.js:140:33)
at addLoader (c:\cygwin64\home\pguar\node\llm\node_modules.pnpm@llm-tools+embedjs@0.1.17_@langchain[email protected]\node_modules@llm-tools\embedjs\src\core\rag-application.js:127:21)
at (c:\cygwin64\home\pguar\node\llm\test.mjs:12:16)
at processTicksAndRejections (<node_internals>/internal/process/task_queues:95:5)
The text was updated successfully, but these errors were encountered: