Vectara provides a way to add documents directly via their API. This API handles pre-processing and chunking internally in an optimal manner. This method is a wrapper to utilize that API within LangChain.
addFiles(
files: VectaraFile[],
metadatas: Record<string, unknown> | undefined = undefined
): Promise<string[]>| Name | Type | Description |
|---|---|---|
files* | VectaraFile[] | An array of VectaraFile objects representing the files and their respective file names to be uploaded to Vectara. |
metadatas | Record<string, unknown> | undefined | Default: undefined |