Skip to content

Pinecone index hard coded in vectorstores.ts #2

@nigellippett2

Description

@nigellippett2

npm run start ./indexes/vectorstores.ts may result in ...

error PineconeClient: Error calling upsert: PineconeClient: Error calling upsertRaw: FetchError: The request failed and the interceptors did not return an alternative response

Likely caused by the index being hard coded in vectorstore.ts as ...
const index = pinecone.Index("langchainjsfundamentals");
and this index does not exist in your Pinecone project.

Fix:
Logon to Pinecone Console, select Indexes menu item and create a new one, or use an existing index if you have one with dimensions 1536.
Update vectorstores.ts and update const index = pinecone.Index("XXX"); to your index name.

Ditto for ./chains/question_answer_docs.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions