I'm messing around with Node PostProcessors. Reranking is working fine and i thought I would add in a second stage of trying PrevNext.
index = VectorStoreIndex.from_vector_store(
vector_store, service_context=service_context
)
prevnext = PrevNextNodePostprocessor(
docstore=index.docstore,
num_nodes=1,
mode="previous",
)
rerank = SentenceTransformerRerank(
model="cross-encoder/ms-marco-MiniLM-L-6-v2", top_n=3)
chat_engine = index.as_chat_engine(chat_mode="context", memory=memory, verbose=True, streaming=STREAMING, service_context=service_context, similarity_top_k=10, node_postprocessors=[rerank, prevnext], ....
When it gets to the PrevNext post processor it fails with "doc_id 0870c4a7-f226-4988-bc82-1702652d8f7e not found."
I have a feeling it has something to do with the docstore= assignement in prevnext but not sure where I'm going wrong
VectorStore = Weaviate