Replies: 1 comment 4 replies
-
|
That's interesting for sure! Unfortunately, defining caching at the injection point isn't a supported feature in Quarkus. I recommend opening an issue in the Quarkus repo |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if we could add caching to embedding generation without having to wrap
EmbeddingModel.javainside another CDI bean.I have a use case where I need to generate embeddings for the same strings across multiple requests, so I’d like to cache them for a while. To do that, I’d wrap the embedding generation and add a cache there.
I’m not sure how that would work in terms of CDI, but it would be nice if we could somehow enable caching directly at the injection point of the
EmbeddingModelinterface.Beta Was this translation helpful? Give feedback.
All reactions