Bring your A game today Fam.
I wrote all the code from uploading the doc into firebase to generating the vector embeddings and that span of code in langchain.ts and some in useupload and generatevector embeddings and even a couple of small things in fileuploader.
4 bugs clear and im afraid to throw another pdf into the loader. what else is gonna be bugged.
Whew this is a tough one.
I caught a type error at one point and threw up
// @ts-expect-error Might throw a bug down the line with a void type need to investigate
and sure enough this was the cause of bug #4 solved it cleared the type error
Make use of these, I have never used this flag and it was very helpful