quivr/backend/parsers/txt.py
Stan Girard e0de23e24d
Feat/single brain (#215)
* feat(llm): update

* feat(singlebrain): added new table with user-id

* feat(user): get user from email

* feat(user_id): added search

*  add user_id to most endpoints

* docs(readme): new script

---------

Co-authored-by: gozineb <zinebe@theodo.fr>
2023-05-31 13:51:23 +02:00

9 lines
270 B
Python

from fastapi import UploadFile
from langchain.document_loaders import TextLoader
from .common import process_file
async def process_txt(file: UploadFile, enable_summarization, user):
return await process_file(file, TextLoader, ".txt", enable_summarization, user)