langchain/libs/partners/openai/langchain_openai/embeddings
Anton Dubovik 3e2cb4e8a4
openai: embeddings: supported chunk_size when check_embedding_ctx_length is disabled (#23767)
Chunking of the input array controlled by `self.chunk_size` is being
ignored when `self.check_embedding_ctx_length` is disabled. Effectively,
the chunk size is assumed to be equal 1 in such a case. This is
suprising.

The PR takes into account `self.chunk_size` passed by the user.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-09-20 16:58:45 -07:00
..
__init__.py infra: add more formatter rules to openai (#23189) 2024-06-19 11:39:58 -07:00
azure.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
base.py openai: embeddings: supported chunk_size when check_embedding_ctx_length is disabled (#23767) 2024-09-20 16:58:45 -07:00