Nuclia
Nuclia automatically indexes your unstructured data from any internal and external source, providing optimized search results and generative answers. It can handle video and audio transcription, image content extraction, and document parsing.
Installation and Setupβ
We need to install the nucliadb-protos
package to use the Nuclia Understanding API
pip install nucliadb-protos
We need to have a Nuclia account
.
We can create one for free at https://nuclia.cloud,
and then create a NUA key.
Document Transformerβ
Nucliaβ
Nuclia Understanding API
document transformer splits text into paragraphs and sentences, identifies entities, provides a summary of the text and generates embeddings for all the sentences.
To use the Nuclia document transformer, we need to instantiate a NucliaUnderstandingAPI
tool with enable_ml
set to True
:
from langchain_community.tools.nuclia import NucliaUnderstandingAPI
nua = NucliaUnderstandingAPI(enable_ml=True)
API Reference:
See a usage example.
from langchain_community.document_transformers.nuclia_text_transform import NucliaTextTransformer
API Reference:
Document Loadersβ
Nuclea loaderβ
See a usage example.
from langchain_community.document_loaders.nuclia import NucliaLoader
API Reference:
Vector storeβ
NucliaDBβ
We need to install a python package:
pip install nuclia
See a usage example.
from langchain_community.vectorstores.nucliadb import NucliaDB
API Reference:
Toolsβ
Nuclia Understandingβ
See a usage example.
from langchain_community.tools.nuclia import NucliaUnderstandingAPI