yashvisal
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
I’ll try this out and let you know if I come across any difficulties
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
Okay perfect! This has been really useful, I really appreciate it
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
So basically I need to figure out how to get the JWTs from Clerk and then use that token to set auth after initializing the ConvexClient and then I should be able to access queries from my db?
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
yes exactly
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
Primarily just using langchain for the most part
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
So essentially, the foundation of my application is a notion clone for which I’m using convex but I want to use the data from that to use as context for my LLM pipelines that I’m creating in my FastAPI application with langchain
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
I’m using clerk-react
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
so if it’s already there then I wouldn’t have to change anything?
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
This might be a stupid question but how do exactly can I go about doing that second option?
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
Sorry this is my first full stack application so I’m still trying to figure out the intricacies of it all
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
So if I did step 2 and did it with the JWT then there’d be no auth issues and I’d be able to access all data/functions from my typescript side in python with my FastAPI application?
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
But for those to function as well as possible they’d need to access information from my convex db
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
For more information, I started with the tutorial for the notion clone that was posted on this server and am trying to extend that with some additional AI capability that I’ve written in python
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
Yes sorry I meant to say clerk not convex, my bad 😅
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
and the aim is to deal with multiple end users so isn't this the best way to do that?
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
I'm sorry I don't quite understand, I'm using convex for auth and was just doing that for error handling which has been working fine in my fully typescript program
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
export const getSearch = query({
handler: async (ctx) => {
const identity = await ctx.auth.getUserIdentity();
if (!identity) {
throw new Error("Not authenticated");
}
const userId = identity.subject;
const documents = await ctx.db
.query("documents")
.withIndex("by_user", (q) => q.eq("userId", userId))
.filter((q) => q.eq(q.field("isArchived"), false))
.order("desc")
.collect();
return documents; } }); --- it was one of my simpler queries so I was trying to use that to get a hang of how to better work with convex in python
return documents; } }); --- it was one of my simpler queries so I was trying to use that to get a hang of how to better work with convex in python
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
I'm just trying to play around with it to better understand how I can implement it into my fastapi python code
49 replies
CCConvex Community
•Created by yashvisal on 1/30/2024 in #support-community
Convex + Python
but when that didn't work the error said it was a problem with auth so I tried messing around with the auth token which didn't really get me anywhere either
49 replies