langchain/langchain
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
..
agents Harrison/arxiv tool (#3186) 2023-04-19 16:53:34 -07:00
callbacks Fixing issue link for Comet callback (#3212) 2023-04-20 14:57:41 -07:00
chains Add DuckDB prompt (#3233) 2023-04-20 14:02:20 -07:00
chat_models consistently use getLogger(__name__), no root logger (#2989) 2023-04-16 12:49:35 -07:00
docstore Harrison/retrieval code (#1916) 2023-03-22 23:15:04 -07:00
document_loaders feat: add loader for rich text files (#3227) 2023-04-20 15:51:49 -07:00
embeddings Hf emb device (#3266) 2023-04-20 20:41:22 -07:00
evaluation Improve eval chain prompt (#2798) 2023-04-12 17:05:20 -07:00
experimental agent docs fixes (#3128) 2023-04-18 21:54:30 -07:00
graphs Minor: Remove duplicated word in error message (#2706) 2023-04-11 13:10:33 -07:00
indexes Fix typo in VectorStoreIndexWrapper method (#1922) 2023-03-23 07:08:04 -07:00
llms Add allowed and disallowed special arguments to BaseOpenAI (#3012) 2023-04-18 09:34:08 -07:00
memory Harrison/file chat history (#3198) 2023-04-19 21:05:20 -07:00
output_parsers Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
prompts Validate input_variables when using jinja2 templates (#3140) 2023-04-19 16:18:32 -07:00
retrievers Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
tools Fix type annotation for QueryCheckerTool.llm (#3237) 2023-04-20 18:50:59 -07:00
utilities Harrison/google places (#3207) 2023-04-20 07:57:07 -07:00
vectorstores Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
__init__.py Harrison/arxiv tool (#3186) 2023-04-19 16:53:34 -07:00
cache.py Harrison/gpt cache (#2744) 2023-04-12 14:16:58 -07:00
docker-compose.yaml add tracing support to langchain (#741) 2023-01-26 17:38:13 -08:00
document_transformers.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
example_generator.py Harrison/improve cache (#368) 2022-12-18 16:22:42 -05:00
formatting.py Validate input_variables when using jinja2 templates (#3140) 2023-04-19 16:18:32 -07:00
input.py Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 2023-02-07 21:21:57 -08:00
math_utils.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
model_laboratory.py Harrison/improve cache (#368) 2022-12-18 16:22:42 -05:00
py.typed Add py.typed marker to package (#121) 2022-11-12 11:22:32 -08:00
python.py Move PythonRepl -> langchain.utilities (#2917) 2023-04-15 10:50:25 -07:00
requests.py fixed aiohttp.client_exceptions.ClientConnectionError: Connection closed (#2718) 2023-04-11 10:52:55 -07:00
schema.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
serpapi.py move serpapi wrapper (#1199) 2023-02-20 21:15:45 -08:00
server.py Fix missing docker-compose (#2899) 2023-04-15 16:05:11 -07:00
sql_database.py Harrison/table index (#2526) 2023-04-06 23:03:09 -07:00
text_splitter.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
utils.py Harrison/bing wrapper (#656) 2023-01-19 14:48:30 -08:00