mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
c51dec5101
### Summary Adds `UnstructuredAPIFileLoaders` and `UnstructuredAPIFIleIOLoaders` that partition documents through the Unstructured API. Defaults to the URL for hosted Unstructured API, but can switch to a self hosted or locally running API using the `url` kwarg. Currently, the Unstructured API is open and does not require an API, but it will soon. A note was added about that to the Unstructured ecosystem page. ### Testing ```python from langchain.document_loaders import UnstructuredAPIFileIOLoader filename = "fake-email.eml" with open(filename, "rb") as f: loader = UnstructuredAPIFileIOLoader(file=f, file_filename=filename) docs = loader.load() docs[0] ``` ```python from langchain.document_loaders import UnstructuredAPIFileLoader filename = "fake-email.eml" loader = UnstructuredAPIFileLoader(file_path=filename, mode="elements") docs = loader.load() docs[0] ``` |
||
---|---|---|
.. | ||
ai21.md | ||
aim_tracking.ipynb | ||
analyticdb.md | ||
apify.md | ||
atlas.md | ||
bananadev.md | ||
cerebriumai.md | ||
chroma.md | ||
clearml_tracking.ipynb | ||
cohere.md | ||
comet_tracking.ipynb | ||
databerry.md | ||
deepinfra.md | ||
deeplake.md | ||
forefrontai.md | ||
google_search.md | ||
google_serper.md | ||
gooseai.md | ||
gpt4all.md | ||
graphsignal.md | ||
hazy_research.md | ||
helicone.md | ||
huggingface.md | ||
jina.md | ||
lancedb.md | ||
llamacpp.md | ||
metal.md | ||
milvus.md | ||
modal.md | ||
myscale.md | ||
nlpcloud.md | ||
openai.md | ||
opensearch.md | ||
petals.md | ||
pgvector.md | ||
pinecone.md | ||
pipelineai.md | ||
predictionguard.md | ||
promptlayer.md | ||
qdrant.md | ||
redis.md | ||
replicate.md | ||
runhouse.md | ||
rwkv.md | ||
searx.md | ||
serpapi.md | ||
stochasticai.md | ||
tair.md | ||
unstructured.md | ||
wandb_tracking.ipynb | ||
weaviate.md | ||
wolfram_alpha.md | ||
writer.md | ||
yeagerai.md | ||
zilliz.md |