Open GiveMeMoreLoansZeroInterest opened 1 month ago
Hey @GiveMeMoreLoansZeroInterest! 👋 I'm here to help you squash those pesky bugs and answer your burning questions. Let's tackle this issue together!
To resolve the import error for PineconeVectorStore
, you need to import it from the correct module path. In your TypeScript code, change the import statement to:
import { PineconeVectorStore } from 'llama_index.vector_stores.pinecone';
This should correctly import the PineconeVectorStore
class and resolve the error you're encountering [1].
To continue talking to Dosu, mention @dosu.
@dosu are you sure that's the import statement for typescript?
I apologize for the confusion. For TypeScript, the import path might differ slightly. Please try the following import statement:
import { PineconeVectorStore } from 'llamaindex/vector_stores/pinecone';
Ensure that the module path matches the structure in your node_modules
directory. If the issue persists, double-check the documentation or the source code for any updates on the export paths.
To continue talking to Dosu, mention @dosu.
@dosu that returns an import error. Are you sure this is the right import from Typescript? The documentation returns import {PineconeVectorStore} from 'llamaindex'
The correct import path for PineconeVectorStore
in the llamaindex
package is "llama_index.vector_stores.pinecone"
[1]. However, if you're using TypeScript, the import path might need to be adjusted based on how the package is structured in your node_modules
.
If the documentation specifies import { PineconeVectorStore } from 'llamaindex'
, it might be outdated or incorrect. Please try the following import statement:
import { PineconeVectorStore } from 'llama_index/vector_stores/pinecone';
Make sure to verify the structure in your node_modules
to ensure the path is correct. If the issue persists, it might be worth checking for any recent changes in the package or consulting the latest documentation.
To continue talking to Dosu, mention @dosu.
Bug Description
Attempting to construct PineconeVectorStore and running into an issue. On Typescript. Any help is much appreciated!
Here's my code:
Here's my error:
Version
"llamaindex": "^0.7.0",
Steps to Reproduce
Attempt to construct PineconeVectorStore
Relevant Logs/Tracbacks
No response