library · inferred from evidence
OpenAIEmbeddings
A library for generating embeddings, part of the LangChain ecosystem, used to interface with OpenAI's embedding models.
- OpenAIEmbeddings fails against Azure OpenAI: Too many inputs for model
Pass `chunk_size=1` when constructing the embeddings: `embeddings = OpenAIEmbeddings(chunk_size=1)`. This was the confirmed fix in the thread and also works through helpers like `vectorstore.from_documents()` where you can't pass chunk_size