You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/tests/integration_tests
Yoann Poupart c1807d8408
`encoding_kwargs` for InstructEmbeddings (#5450)
# What does this PR do?

Bring support of `encode_kwargs` for ` HuggingFaceInstructEmbeddings`,
change the docstring example and add a test to illustrate with
`normalize_embeddings`.

Fixes #3605
(Similar to #3914)

Use case:
```python
from langchain.embeddings import HuggingFaceInstructEmbeddings

model_name = "hkunlp/instructor-large"
model_kwargs = {'device': 'cpu'}
encode_kwargs = {'normalize_embeddings': True}
hf = HuggingFaceInstructEmbeddings(
    model_name=model_name,
    model_kwargs=model_kwargs,
    encode_kwargs=encode_kwargs
)
```
1 year ago
..
agent Add Multi-CSV/DF support in CSV and DataFrame Toolkits (#5009) 1 year ago
cache feat: add Momento as a standard cache and chat message history provider (#5221) 1 year ago
callbacks add tracing v2 env var (#4465) 1 year ago
chains Harrison/neo4j (#5078) 1 year ago
chat_models Harrison/vertex (#5049) 1 year ago
client Add Delete Session Method (#5193) 1 year ago
document_loaders Harrison/spark reader (#5405) 1 year ago
embeddings `encoding_kwargs` for InstructEmbeddings (#5450) 1 year ago
examples fix(document_loaders/telegram): fix pandas calls + add tests (#4806) 1 year ago
llms Harrison/prediction guard update (#5404) 1 year ago
memory feat: add Momento as a standard cache and chat message history provider (#5221) 1 year ago
prompts Cleanup integration test dir (#3308) 1 year ago
retrievers tfidf retriever (#5114) 1 year ago
utilities Tedma4/twilio tool (#5136) 1 year ago
vectorstores adding MongoDBAtlasVectorSearch (#5338) 1 year ago
.env.example adding MongoDBAtlasVectorSearch (#5338) 1 year ago
__init__.py initial commit 2 years ago
conftest.py feat: improve pinecone tests (#2806) 1 year ago
test_document_transformers.py Contextual compression retriever (#2915) 1 year ago
test_nlp_text_splitters.py OptimizedPrompt -- k-shot example choice backed by semantic search (#91) 2 years ago
test_pdf_pagesplitter.py cleanup: unify 3 different pdf loaders, rename PagedPDFSplitter (#1615) 1 year ago
test_schema.py Add 'get_token_ids' method (#4784) 1 year ago
test_text_splitter.py Fix TextSplitter.from_tiktoken(#4361) 1 year ago