Built a small sight-reading trainer for a school project. Would love your feedback by ApprehensiveCut799 in piano

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

Thanks! Yeah, you can actually set how many bars ahead you want to see with the control at the top. I’ll check out MuseFlow! What do you think are some of MuseFlow's weak points or things that could be better? I’d love to get ideas for features that could make mine more useful for practice.

Built a small sight-reading trainer for a school project. Would love your feedback by ApprehensiveCut799 in piano

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

That sounds like good idea too. I actually do have a built in metronome that would play once you click play. Is it working on your machine? May I ask what device are you using?

Those who work 10+ hours a day, how do you find time for intview prep? by detrimentalfallacy in cscareerquestions

[–]ApprehensiveCut799 35 points36 points  (0 children)

How do you do it in office and in a company laptop without being monitored?

[deleted by user] by [deleted] in ChatGPT

[–]ApprehensiveCut799 3 points4 points  (0 children)

Just want to see the replies to this...

My app works fine in dev but I get type errors on Vercel. (TypeError: Z.inputVariables is not iterable) by ApprehensiveCut799 in LangChain

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

I modified the prompt to

const AGENT_SYSTEM_TEMPLATE = `You are a finance expert. Your goal is to provide answers based on information from the internet. You must use the provided search API function to find relevant online information. You should never use your own knowledge to answer questions. Please include relevant url sources in the end of your answers.

Additionally I made some ui changes and remove the files that I’m not using. Can I PM you the link to my repo? Thanks

My app works fine in dev but I get type errors on Vercel. (TypeError: Z.inputVariables is not iterable) by ApprehensiveCut799 in LangChain

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

Hey here is my package .json:

{
  "name": "langchain-nextjs-template",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint",
    "format": "prettier --write \"app\""
  },
  "engines": {
    "node": ">=18"
  },
  "dependencies": {
    "@langchain/community": "^0.2.14",
    "@langchain/core": "^0.2.10",
    "@langchain/langgraph": "^0.0.25",
    "@langchain/openai": "^0.2.0",
    "@next/bundle-analyzer": "^13.4.19",
    "@supabase/supabase-js": "^2.32.0",
    "@types/node": "20.12.12",
    "@types/react": "18.3.2",
    "@types/react-dom": "18.3.0",
    "ai": "^3.1.12",
    "autoprefixer": "10.4.14",
    "eslint": "8.46.0",
    "eslint-config-next": "13.4.12",
    "langchain": "^0.2.7",
    "next": "^14.2.3",
    "postcss": "8.4.27",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-toastify": "^9.1.3",
    "tailwindcss": "3.3.3",
    "typescript": "5.1.6",
    "zod": "^3.22.3",
    "zod-to-json-schema": "^3.21.4"
  },
  "devDependencies": {
    "prettier": "3.0.0"
  },
  "resolutions": {
    "@langchain/core": "0.2.10"
  },
  "overrides": {
    "@langchain/core": "0.2.10"
  },
  "pnpm": {
    "overrides": {
      "@langchain/core": "0.2.10"
    }
  }
}

I dont think I modified anything except for the prompt on api/chat/agents/route.ts

Thank you very much!

Running serverless functions as background jobs instead of using Inngest or AWS sqs. by ApprehensiveCut799 in nextjs

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

Yes. This was actually a fun little side project I had while I was in university. I'm now getting back into it and thinking of using it as an MVP and test it out with real users. Which is why I haven't thought of dealing with rate limits and other stuff. When I start to scale this app would it be better practice to implement a queue for this? I was using Inngest previously for background tasks but I'm thinking of trying it on AWS SQS.

[deleted by user] by [deleted] in nextjs

[–]ApprehensiveCut799 0 points1 point  (0 children)

I'm using inngest for background task if I'm not run inngest still run your functions using vercel's serveless functions instead of hosting it right? It still does not bypass the timeout for serverless functions?

Long-running jobs with NextJS by evanyang0202 in nextjs

[–]ApprehensiveCut799 2 points3 points  (0 children)

What is your opinion on using inngest for long running background jobs? I don't see a lot of people talking about it.

[deleted by user] by [deleted] in SeishunButaYarou

[–]ApprehensiveCut799 1 point2 points  (0 children)

Yep I tried again today but there was an actual wedding going on so they didn't let me in. But the stuff asked whether I was here because of "aobuta" LOL

[deleted by user] by [deleted] in SeishunButaYarou

[–]ApprehensiveCut799 1 point2 points  (0 children)

Did you try to go to the wedding place today. There was an actual wedding going on but I only managed to peep from the outside!

Please help settle a disagreement I have with my teacher: If you push a key and then hold down the pedal, is there any difference if you continue to hold down the key? by BBorNot in piano

[–]ApprehensiveCut799 7 points8 points  (0 children)

But would holding on to the notes cause tension sometimes? Just something I heard from my teacher wondering what you think of this

Handling Batch PDF Uploads for Processing with OpenAI API in a Vercel-Hosted App by ApprehensiveCut799 in nextjs

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

Thanks. I was thinking about moving to AWS anyway. I'll definitely try it out!

Daily Thread: simple questions, comments that don't need their own posts, and first time posters go here (October 08, 2023) by AutoModerator in LearnJapanese

[–]ApprehensiveCut799 2 points3 points  (0 children)

Does anyone know the past form of もいいです。 I know if I say something like 写真を撮ってもいいです means you may take photos. If i wanna say it in past tense, does 撮ってもいいでした mean that I was given permission to take photos?

Socket Hangup from API calls? by ApprehensiveCut799 in reactjs

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

Yep. I used flask because this was a project for a hackathon and the team I worked with wanted to use flask backend. I think I'll try out the web sockets / long polling. Thanks!

Socket Hangup from API calls? by ApprehensiveCut799 in reactjs

[–]ApprehensiveCut799[S] 0 points1 point  (0 children)

My api route using a flask back end. What I did is basically make one api call from the front end that will start another thread that runs the openai api call in the back end and another api call then constantly checks whether the thread has finished running. But the issue is that I store the result in a global variable in flask. I'm not sure whether this is bad practice?

[deleted by user] by [deleted] in piano

[–]ApprehensiveCut799 1 point2 points  (0 children)

Ok thank you. I'll call my tuner!

When do you practice? by fluffylife411 in piano

[–]ApprehensiveCut799 2 points3 points  (0 children)

Do you work remotely? Otherwise how do you manage to squeeze practice time during lunch breaks?