firstbatchxyz / firstbatch-sdk-ts

TypeScript SDK for FirstBatch: Real-time Personalization using VectorDBs.
https://firstbatch.xyz/
MIT License
5 stars 1 forks source link

Better typing needed for `batch` #9

Closed erhant closed 8 months ago

erhant commented 9 months ago

Instead of:

[string[], QueryMetadata[]]

make a single type such as:

{id: string, metadata: QueryMetadata}[]
erhant commented 8 months ago

It may be better to keep this same with Python side, for migrations etc. if that may be the case sometime in the future,

erhant commented 8 months ago

LangChain uses [Document, number][]