polymath icon indicating copy to clipboard operation
polymath copied to clipboard

Dates and time

Open dalmaer opened this issue 2 years ago • 2 comments

I often see questions that involve time.

When was the first time X?

Between 2022 and 2023 Y?

Can we do more with dates and time... Eg

  • add the date of a source into info?
  • add the date into some of the embeddings?

Similar: versions where appropriate.

dalmaer avatar Feb 12 '23 19:02 dalmaer

The design for #18 also sketched out how to handle timestamps and date filtering, and glancing at it now I think it still holds up

jkomoros avatar Feb 20 '23 13:02 jkomoros

That's great. Makes sense for times/dates. As soon as we get into more querying it makes me stare at pinecone even more.

index.query(
    vector=[0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1],
    filter={
        "genre": {"$eq": "documentary"},
        "year": 2019
    },
    top_k=1,
    include_metadata=True
)

Are we good with supporting custom metadata in your library? E.g. genre above etc. I have been using that for things like ... storing docs for different versions of a SDK etc.

dalmaer avatar Feb 20 '23 16:02 dalmaer