You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Pinecone as a vector DB for my RAG application. I've loaded some documents into it with python code, and now I'm trying to query the DB with TypeScript. However, the nodes in the query result always contains an empty "text" field, which prevents me from using the texts in my prompt.
Here is how I query the DB:
constembedModel=newOpenAIEmbedding({apiKey: process.env.OPENAI_API_KEYasstring,model: "text-embedding-3-large",dimensions: 768,});constembedding=awaitembedModel.getTextEmbedding("my query");constpcvs=newPineconeVectorStore({indexName: "my-index",});constresult=awaitpcvs.query({queryEmbedding: embedding,similarityTopK: 5,mode: VectorStoreQueryMode.DEFAULT,});console.log(result.nodes);// Contains 5 items with scores but empty text field
The text was updated successfully, but these errors were encountered:
marcusschiesser
changed the title
PineconeVectorStore returns empty textsPineconeVectorStore support loading data from Python and reading from TS
Feb 26, 2024
Hey everyone.
I'm using Pinecone as a vector DB for my RAG application. I've loaded some documents into it with python code, and now I'm trying to query the DB with TypeScript. However, the nodes in the query result always contains an empty "text" field, which prevents me from using the texts in my prompt.
Here is how I query the DB:
Here is how I loaded them into the DB:
Here is an image during a debugging session:
I think this is related to #552 but I'm not sure.
I'd would love to get some help on this :)
The text was updated successfully, but these errors were encountered: