this post was submitted on 19 Nov 2023
1 points (100.0% liked)

Entrepreneur

0 readers
1 users here now

Rules

Please feel free to provide evidence-based best practices, share a micro-victory, discuss strategy and concepts with a frame work, ask for feedback, and create professional conversation. Treat every post as if you're at work and representing the best version of yourself.

founded 1 year ago
MODERATORS
 

It takes maybe 3 seconds per call. Should I still lead generate…? What would you do?

you are viewing a single comment's thread
view the rest of the comments
[–] jaypeejay@alien.top 1 points 11 months ago (4 children)

Fix the tech. Slow api calls are usually a result of slow running queries. Profile your app and look for n+1 queries

[–] creativecode@alien.top 1 points 11 months ago (1 children)

Thx for that I made it twice as fast tonight by optimizing 🙌🏼 plugging away

[–] DroppedMyGirl@alien.top 1 points 11 months ago (1 children)

twice as fast is still pretty slow, what does it do? why is it so slow?

[–] creativecode@alien.top 1 points 11 months ago (1 children)

You got that right… it’s calling to gpt-4 turbo for personalized recommendations text. So it recommends movies, books, etc. One call to get recommendations than another call per rec to get personalized synopsis text. I tried making it 2 big calls but it was surprisingly slower. Lmk if thoughts

[–] DroppedMyGirl@alien.top 1 points 11 months ago

Making calls to GTP-4 will be pretty slow

load more comments (2 replies)