feat(embeddingModel): add embedding model into mongodb#1362
feat(embeddingModel): add embedding model into mongodb#1362neven4 wants to merge 2 commits intohuggingface:mainfrom
Conversation
|
Will the default embedding model setting be inserted in the database every time the server restarts? |
For now - yes, in order to support the current behavior and allow users to edit embedding models via |
|
Hi @nsarrazin, what do you think about this? |
nsarrazin
left a comment
There was a problem hiding this comment.
Hi, thanks for the contrib, this looks like a nice feature, will do a deeper review soon but just curious, how do you handle the API keys stored in the env variable? Do you copy these over in the DB?
Hi there, I hope I got the question right. I'm not touching API keys at all, I just parse |
|
I meant for example the OpenAI embedding endpoint has an |
|
Oh, good catch, I missed that part. In this case we need to encrypt/decrypt api keys using some encryption key 👍 |
f09dcd0 to
ea01acd
Compare
|
Hi @nsarrazin, I added an encryption for sensitive data 👍 |
d147fec to
4d98b15
Compare
Hi there,
I decided to create the first PR which migrate config management from
.envfile to UI.How do I see it:
EmbeddingModelModelEmbeddingModelandModelWDYT?
Part of #1286