Find answers from the community

Updated 9 months ago

Course

Hey all - setup question. I'm trying to follow along this course by Laurie Voss: https://learn.deeplearning.ai/courses/javascript-rag-web-apps-with-llamaindex/lesson/2/getting-started-with-rag
In the step with this code:
import {
Document,
VectorStoreIndex,
SimpleDirectoryReader
} from "npm:llamaindex@0.1.8"

I get this syntax error for { after import.
Am I missing something in the setup?
Thanks
Attachment
Screenshot_2024-03-29_at_3.11.47_PM.png
L
D
3 comments
Oh, you are running typescript code with python
You'll want to run using typescript and a ts node compiler thingy
Thank you. not too familiar with typescript. Will look it up. If you have any tutorial link handy, I'd appreciate getting it.
Add a reply
Sign up and join the conversation on Discord