library · inferred from evidence
OpenAIEmbeddings
A library for generating embeddings, part of the LangChain ecosystem, used to interface with OpenAI's embedding models.
- [Bug] Pinecone has no attribute 'from_texts'
How to fix '[Bug] Pinecone has no attribute 'from_texts'' in Pinecone, straight from the verified resolution in gh:pinecone-io/python-sdk#388. Root cause plus what to change.
- 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