ok, I guess I just have to repeat initialization code for each endpoint. I'm using Langhian and have

ok, I guess I just have to repeat initialization code for each endpoint. I'm using Langhian and have to initialize the embeddings and vector store for every GET and POST. Is there a best practice?
Was this page helpful?