Find answers from the community

Updated 7 months ago

I'm trying to create a new postprocessor

I'm trying to create a new postprocessor:
PrevNextNodePostprocessor(docstore=self.get_qdrant_vector_store(collection_name=collection_name), num_nodes=num_nodes)

But I'm getting the following error, Any help on this pls ?
ValidationError: 1 validation error for PrevNextNodePostprocessor
docstore
instance of BaseDocumentStore expected (type=type_error.arbitrary_type; expected_arbitrary_type=BaseDocumentStore)
Attachment
Screenshot_2024-05-13_at_2.57.53_PM.png
L
l
5 comments
are you mixing legacy and non-legacy imports?
@Logan M thx for the response, no sir, I'm not importing any legacy modules. Both QdrantVectorStore and PrevNextNodePostprocessor are from the current stable release of llama_index
Attachment
Screenshot_2024-05-13_at_6.45.57_PM.png
oh! You are passing a vector store in as a docstore
that wont work
ahh its a completely different index that i need to pass to the vector store for the node post processor to work, gotcha. Thx @Logan M appreciate it. I'll try that. sorry I misunderstood the entire rationale behind that mechanism.
Add a reply
Sign up and join the conversation on Discord