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)
import UnstructuredClient from 'unstructured-sdk';
const client = new UnstructuredClient({ authMethod: 'My Auth Method', username: process.env['UNSTRUCTURED_USERNAME'], // This is the default and can be omitted password: process.env['UNSTRUCTURED_PASSWORD'], // This is the default and can be omitted });
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)
import UnstructuredClient from 'unstructured-sdk';
const client = new UnstructuredClient({ authMethod: 'My Auth Method', username: process.env['UNSTRUCTURED_USERNAME'], // This is the default and can be omitted password: process.env['UNSTRUCTURED_PASSWORD'], // This is the default and can be omitted });