langchain
3e2cb4e8 - openai: embeddings: supported chunk_size when check_embedding_ctx_length is disabled (#23767)

Commit
1 year ago
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>
Author
Parents
Loading