Pinecone Vector store with Cohere embedding (free n8n template)
Visit Pinecone (click here), create an account, and log in.
Once logged in, go to Indexes > Create Index.
Then, a new page will open.
Fill in the details as shown in the image.
After that, click Create Index.
Then, go to the API Keys section to retrieve and store your API key securely.
Then, go to n8n. (Create an n8n account now) if you don't have one.
Then create a new workflow, and search for n8n Form.
Select New n8n Form Event, change the Element Type to File, and enable the Required field. This will be used for file uploads.
Then, search for Pinecone and select Add Document to Vector Store.
Then, set up your credentials by entering the API Key. (Get your cohere API key here)
For Embedding, select Cohere and choose the model "Embed-Multilingual-v3.0 (1024 Dimensions)".
For the Document, select the Default Data Loader and change the Type of Data to Binary with Recursive Character Text Splitter.
For Recursive Character Text Splitter, set the Chunk Size to 1000.
That's it! You are now ready to upload files to your vector store.