dglazkov / polymath

MIT License
133 stars 9 forks source link

Dates and time #114

Open dalmaer opened 1 year ago

dalmaer commented 1 year ago

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

Similar: versions where appropriate.

jkomoros commented 1 year ago

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

dalmaer commented 1 year ago

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.