LLPhant icon indicating copy to clipboard operation
LLPhant copied to clipboard

[Question] How to set the "payload" for the QdrantVectorStore?

Open menturion opened this issue 10 months ago • 1 comments

Hi, I am new to this excellent library.

I need to store additional data within the "payload" for documents to set a reference to the original items.
I saw that the method QdrantVectorStore::createPointFromDocument() does not pass the "payload" param when instantiating a new PointStruct().

However, in method QdrantVectorStore::similaritySearch() you call setWithPayload(true).

So, my first thought was that it would be great to have a setter in the QdrantVectorStore class to set the data for the payload which then would be used within the PointStruct() instantiation within method createPointFromDocument. Or is there already a way to set the "payload"?

menturion avatar Feb 03 '25 10:02 menturion

Hey @menturion , we can add a metadata entry in the payload. Feel free to make a PR about it.

MaximeThoonsen avatar Feb 09 '25 17:02 MaximeThoonsen