quivr/v2/txt.py
2023-05-18 13:47:53 +02:00

6 lines
259 B
Python

from common import process_file
from langchain.document_loaders import TextLoader
from fastapi import UploadFile
async def process_txt(vector_store, file: UploadFile, stats_db):
return await process_file(vector_store, file, TextLoader, stats_db=stats_db)