Files
langchain-python/langchain/embeddings
Davis Chase 36720cb57f Hf emb device (#3266)
Make it possible to control the HuggingFaceEmbeddings and HuggingFaceInstructEmbeddings client model kwargs. Additionally, the cache folder was added for HuggingFaceInstructEmbedding as the client inherits from SentenceTransformer (client of HuggingFaceEmbeddings).

It can be useful, especially to control the client device, as it will be defaulted to GPU by sentence_transformers if there is any.

---------

Co-authored-by: Yoann Poupart <66315201+Xmaster6y@users.noreply.github.com>
2023-04-20 20:41:22 -07:00
..
2023-04-02 14:57:45 -07:00
2022-11-01 21:29:39 -07:00
2023-03-07 15:23:46 -08:00
2023-04-20 20:41:22 -07:00
2023-04-04 19:52:33 -07:00