langchain
langchain copied to clipboard
Update 'add_texts' to create embeddings in batches
Pinecone currently creates embeddings serially when calling add_texts
. It's slow and unnecessary because all embeddings classes have a from_documents
method that creates them in batches. If no one is working on this I can create a PR, please let me know!