Replies: 2 comments 10 replies
-
🤖 Hello @jambudipa! I'm Dosu, a friendly bot here to assist you with your inquiries about langchainjs, help resolve any bugs, and guide you on becoming a contributor. While we're awaiting a human maintainer, I'll do my best to assist you. Let's get started, shall we? In the Here's how you can modify your code: import { InMemoryStore } from "langchain/storage/in_memory";
const docstore = new InMemoryStore();
const retriever = new ParentDocumentRetriever({
vectorstore,
docstore,
childSplitter: new HTMLSplitter(),
parentK: 5
});
await retriever.addDocuments(docs); In this code, a new The You can find more details in the examples/src/retrievers/parent_document_retriever.ts file in the langchainjs repository. I hope this helps! If you have any other questions, feel free to ask. Best, 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. |
Beta Was this translation helpful? Give feedback.
-
+1 to this issue, is there a sample to work on to use the docStore different from the |
Beta Was this translation helpful? Give feedback.
-
I am looking to use the
ParentDocumentRetreiver
along with Pinecone in JS Langchain, as described here.I am struggling to update that sample code to use Pinecone as the vector store. I had previously used Haystack in Python and the pipeline architecture is a little different.
I have this so far:
...but I'm not sure what the
docstore
property should be?Beta Was this translation helpful? Give feedback.
All reactions