Skip to content

Is anybody else getting an empty result on the pgvector demo page? #856

Answered by dyor
dyor asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like the every-keystroke implementation overwhelms the free tier of the API (and probably costs $$ for those who are not on free tier).

I ended up changing the line to a longer delay before initiating the OpenAI call + purchasing some Open AI credits, and now it is working.

const [debouncedQuery] = useDebounce(query, 5000)

Note that I do not think OpenAI consumes cash with every query, but if you have a noisy app (like the pgvector app) it may just throttle you. After adding $10, I have not seen any reduction in my available balance. I will update if it goes to $0:).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dyor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant