Dealing with file path to load csv file
Hi guys, i need help for a simple question
I have a tree project like this:
how do i reference the
product-embeddings.json
using path
?
I've tried using this
but it reference the path on MyMastraProject/.mastra/output/product-embeddings.json
instead of MyMastraProject/product-embeddings.json
4 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8873
GitHub
[DISCORD:1427875437492568115] Dealing with file path to load csv fi...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1427875437492568115 Hi guys, i need help for a simple question I have a tree project like this: ├── packag...
Hi! You can use the public folder: https://mastra.ai/en/docs/deployment/server-deployment#public-folder
Place the csv there and then reference your file with a relative path
Deploy a Mastra Server
Learn how to deploy a Mastra server with build settings and deployment options.
is there any official way to access the file?
i got this error intermittently
here's the code I used:
It should just be
CSV_FILE_PATH = './data.csv'
, no need for dirname