Michael Rea
CCConvex Community
•Created by Michael Rea on 4/30/2024 in #support-community
How to approach Streaming Audio
https://docs.play.ht/reference/integrating-with-chatgpt
So I'm wanting to use Play.ai text to speech where you can stream text results from an LLM like chatGPT and stream the audio back to the client.
I'm having trouble conceptualising how I could even do this in convex if at all.
My LLM logic and RAG is all happening in convex logic.
Is it even possible to pipe a audio-stream back to the browser from a convex action?
Not sure how to integrate something like this with my existing convex functions.
I'm using NextJS.
Cheers
2 replies
CCConvex Community
•Created by Michael Rea on 4/10/2024 in #support-community
Vector search filter: Id NOT in array
I'm trying to vector search on messages but want to exclude a message (the most recent user prompt) based on Id before the search.
Is this possible with the filter or does it just have to be done after?
3 replies
CCConvex Community
•Created by Michael Rea on 3/25/2024 in #support-community
Query Caching
I'm trying to understand which approach is best.
Do queries cache only on the level of the whole query?
----------
Option A:
----------
Option B:
-----
Lets say a new message comes in, will option B be using the cached queries on each ID and get a non-cached for the new message?
Compared to option A (where I'm unclear) does that get all the messages without cache OR actually uses the cache under the hood?
10 replies
CCConvex Community
•Created by Michael Rea on 2/29/2024 in #support-community
queryWithUser on internalAction?
I've been using the convex helpers.
I'm trying to use queryWithUser from an Action (thats is called from a mutationWithUser initially.
For authentication on mutations and queries on internalActions how should I do it?
I'm guessing Auth is not available on internalAction?
Should I just not worry about Auth since my Action is spawning from a mutationWithUser anyway?
Or should I just use actionWithUser instead?
3 replies
CCConvex Community
•Created by Michael Rea on 2/9/2024 in #support-community
query that runs once?
Is there a way to load data from a query once and stop it from being updated on db change.
I've got a collaborative text editor that I'm loading the initial data from convex using useQuery but I'm only using the data once when loading the component for the first time.
Every time I make changes in the text editor the update note mutation is run and useQuery is run.
Is it costing me to get the new data from useQuery everytime the user types?
Since I only need to load the data intially it seems like a waste.
So basically I'm looking for a non-realtime query read.
35 replies
CCConvex Community
•Created by Michael Rea on 2/9/2024 in #support-community
Cancel scheduled func - Counted towards billing
7 replies
CCConvex Community
•Created by Michael Rea on 12/20/2023 in #support-community
Database bandwidth
35 replies
CCConvex Community
•Created by Michael Rea on 11/22/2023 in #support-community
ActionCtx depreciated?
3 replies
CCConvex Community
•Created by Michael Rea on 11/19/2023 in #support-community
Use helper functions or internalAction?
4 replies
CCConvex Community
•Created by Michael Rea on 11/13/2023 in #support-community
Authenticate actions?
Is it possible / needed to authenticate actions?
const identity = await ctx.auth.getUserIdentity();
console.log("identity", identity);
if (identity === null) {
throw new Error("Unauthenticated call to action");
}
identity is always null here....
5 replies