mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-08-14 19:58:44 +00:00
feat(utils): add files utils, remove logger, fix API url
This commit is contained in:
@ -3,7 +3,6 @@ import { htmlToText } from 'html-to-text';
|
||||
import { RecursiveCharacterTextSplitter } from 'langchain/text_splitter';
|
||||
import { Document } from '@langchain/core/documents';
|
||||
import pdfParse from 'pdf-parse';
|
||||
import logger from './logger';
|
||||
|
||||
export const getDocumentsFromLinks = async ({ links }: { links: string[] }) => {
|
||||
const splitter = new RecursiveCharacterTextSplitter();
|
||||
|
Reference in New Issue
Block a user