quivr/backend/packages/files/parsers/notebook.py

18 lines
469 B
Python
Raw Normal View History

from langchain_community.document_loaders import NotebookLoader
from models import File
from .common import process_file
2023-05-21 22:12:41 +03:00
def process_ipnyb(
file: File, brain_id, original_file_name, integration=None, integration_link=None
):
return process_file(
file=file,
loader_class=NotebookLoader,
brain_id=brain_id,
original_file_name=original_file_name,
integration=integration,
integration_link=integration_link,
)