If you don't want old content in the vector DB, the best approach is probably not to add it to the vector DB (or remove old entries as new ones are added, or truncate/reload the vector DB so it only contains relevant docs). The alternate approach is when you receive the results of a vector query, you will have the JSON metadata for each entry, so you can filter out only the most recent results that way. HTH.
Great video with powerful explanations!
Glad you liked it!
thanks for the video!
My pleasure!
its so tiring if everything fails just cause they changed their API calls.
Hi any idea how can I add a date to the vectorDB so the answer will be base on the most up-to-date document?
If you don't want old content in the vector DB, the best approach is probably not to add it to the vector DB (or remove old entries as new ones are added, or truncate/reload the vector DB so it only contains relevant docs). The alternate approach is when you receive the results of a vector query, you will have the JSON metadata for each entry, so you can filter out only the most recent results that way. HTH.