These capabilities are currently in beta. Please contact founders@tryneum.com with any questions or asks.

Only supported for local development. Not supported for Neum cloud.

Document Loaders

Langchain offers a variety of document loaders for many sources. Langchain loaders have a similar load method to Neum data connectors. The output of the method is a Langchain Document vs a Neum Document. We offer helpers to transform documents.

!pip install neumai-tools

from neumai_tools.InteropHelpers.DocumentTransformer import document_transformer_langchain
from langchain.document_loaders import TextLoader

loader = TextLoader("./index.md")
documents = loader.load()

neum_documents = [document_transformer_langchain(document) for documents in documents]