New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Pinecone Serverless #457
Comments
🤖 Hello again @JPaulMora! Always a pleasure to see familiar faces around here. Let's jump right into it! Thank you for your suggestion to add support for Pinecone Serverless to the gpt4-pdf-chatbot-langchain repository. Based on the current server architecture of the repository, it seems that Pinecone is already being used for vector storage and retrieval. However, it's not clear from the provided context how Pinecone Serverless would enhance the functionality of the repository or how it differs from the current Pinecone implementation. The current serverless function in the repository uses a Pinecone index to create a vector store, which is then used as a retriever in the chatbot's chain of operations. If Pinecone Serverless were to be integrated, it would likely replace the current PineconeStore with a serverless variant. This could potentially affect the way the vector store is initialized and used throughout the application. However, without specific details on how Pinecone Serverless operates or how it differs from the current PineconeStore, it's difficult to provide a more detailed analysis. Could you please provide more information about the specific features and benefits of Pinecone Serverless, and how it would enhance the functionality of the gpt4-pdf-chatbot-langchain repository? This would help in understanding the potential impact of this integration and how it could be implemented. Here is the relevant code from the repository for reference: const index = pinecone.Index(PINECONE_INDEX_NAME);
/* create vectorstore*/
const vectorStore = await PineconeStore.fromExistingIndex(
new OpenAIEmbeddings({}),
{
pineconeIndex: index,
textKey: 'text',
namespace: PINECONE_NAME_SPACE, //namespace comes from your config folder
},
);
//create chain
const chain = makeChain(retriever); Source: pages/api/chat.ts Looking forward to your response. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
bump |
you have to bump pinecone-database to latest then change in pinecone-client.ts
to
@langchain/pinceone |
Thanks @precupstefan Will try this later |
This did not work for me, I can't initialize pinecone now.. |
Has anyone been able to get this to work? I tried what was mentioned above, but my the changes recommended doesn't match what is actually in the pinecone-client.ts file. |
Hello, I think it would be a great addition to have this new Pinecone feature added here. Serverless blog post for reference: https://www.pinecone.io/blog/serverless/
The text was updated successfully, but these errors were encountered: