feat: make it easier to create empty tables (#942)

This PR also reworks the table creation utilities significantly so that
they are more consistent, built on top of each other, and thoroughly
documented.
This commit is contained in:
Weston Pace
2024-02-13 10:51:18 -08:00
parent b014c24e66
commit 9241f47f0e
5 changed files with 573 additions and 176 deletions

View File

@@ -49,7 +49,7 @@ const {
export { Query }
export type { EmbeddingFunction }
export { OpenAIEmbeddingFunction } from './embedding/openai'
export { makeArrowTable, type MakeArrowTableOptions } from './arrow'
export { convertToTable, makeArrowTable, type MakeArrowTableOptions } from './arrow'
const defaultAwsRegion = 'us-west-2'