feat: non-english youtube support

This commit is contained in:
Timothy J. Baek
2024-05-08 10:47:05 -07:00
parent 87daf122db
commit d3822f782c
4 changed files with 73 additions and 3 deletions

View File

@@ -32,10 +32,16 @@ type ChunkConfigForm = {
chunk_overlap: number;
};
type YoutubeConfigForm = {
language: string[];
translation?: string | null;
};
type RAGConfigForm = {
pdf_extract_images?: boolean;
chunk?: ChunkConfigForm;
web_loader_ssl_verification?: boolean;
youtube?: YoutubeConfigForm;
};
export const updateRAGConfig = async (token: string, payload: RAGConfigForm) => {