Find answers from the community

Updated 3 months ago

Hello guys,

Hello guys,
I have a qdrant db with embeddings. I would like to knwo if there is a way each time I retrieve a node, to get the previous and next node ?
To explain the context:
My db is composed of a law text. so I have Article 1, Article 2, Article 3,...
if I retrieve Article 10, I want to 'import' articles 9 and 11.
Thanks a lot
L
1 comment
The previous and next node should be in the node.relationships

The latest version of qdrant vector store adds a new API method, with the node ids, you can do vector_store.get_nodes(node_ids=[...])
Add a reply
Sign up and join the conversation on Discord