import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.data_source.document_text( data_connector_name="data_connector_name", file_names=["string"],)print(response.file_to_nodes_to_text)
{ "file_to_nodes_to_text": {}}
Data Connectors
Get Document Text
Retrieve the raw text content for specified documents from the vector database
POST
/
data
/
document_text
Python
import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.data_source.document_text( data_connector_name="data_connector_name", file_names=["string"],)print(response.file_to_nodes_to_text)