Find answers from the community

Updated 2 years ago

Nodes

At a glance

The community member has a docstore, vectorstore, and indexstore stored in a persist directory, and they want to create a keyword index from the nodes in the docstore. However, they are unable to find a way to load all the nodes from the docstore to pass them to the SimpleKeywordTableIndex.

A community member suggests that index.docstore.docs is one way to do it, which appears to be an answer to the original question.

Maybe it's a newbish question but i can't find the answer. I have stored a docstore in a persist dir (alongside with corresponding vectorstore and indexstore). I one function, i want to create a keyword index from the nodes. But i can't find a way to load all the nodes from the docstore in order to pass them to the SimpleKeywordTableIndex
L
1 comment
index.docstore.docs is one way to do it
Add a reply
Sign up and join the conversation on Discord