Problem in Pinecone fetch API request

Created on 2 January 2024, 6 months ago

Problem/Motivation

In the openai_embedding module, we have a plugin for Pinecone which provides some functions to call the necessary APIs of Pinecone. One of them is the fetch query which is responsible for providing the vector data response based on the provided IDs.

As per the pinecone documentation ( Link: https://docs.pinecone.io/docs/manage-data#fetching-records ), one will have to provide the IDs as a query. For multiple IDs, we can add multiple ids params in the request.

However, the code written to fetch the data in the Pinecone plugin is not aligned with the request type mentioned in the doc. The request that we are sending is adding the query like this "ids[0]=entity:35146:node:article:body:0&ids[1]=entity:35147:node:article:body:0&namespace=node:body"

As a result we are not getting any response from the API.

Steps to reproduce

Try to fetch the data from the pinecone using the fetch function provided by the pinecone plugin.

Proposed resolution

Instead of passing the array we should convert it to a string.

🐛 Bug report
Status

Active

Version

1.0

Component

OpenAI Embeddings

Created by

🇮🇳India kunal_singh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024