Open hschmied opened 1 month ago
@hschmied Hey thanks for the feedback we're looking into it! cc: @bsbodden
Looks like it was added as optional in langchain core :
# The ID field is optional at the moment.
# It will likely become required in a future major release after
# it has been adopted by enough vectorstore implementations.
id: Optional[str] = None
"""An optional identifier for the document.
Quick question -- I noticed, that similarity_search (vectorstores.py) returns Document-objects without the 'id' being set. Is this intentional or an oversight.
For testing purposes I locally fixed it for my use-case like...
There's a couple places that have a similar behavior (...with_score, ...with_vectors, ...storage_type). I didn't want to rush ahead, change stuff and send a PR, because maybe there's a good reason.
Thanks!