llama-parse-py API reference
153 public APIs from llama-parse-py (run-llama/llama-parse-py) — 133 classes, 8 functions, 12 methods. Signatures extracted by static analysis of the actual source.
Repository: run-llama/llama-parse-py
| Kind | Count |
|---|---|
| Classes | 133 |
| Functions | 8 |
| Methods | 12 |
API list
class
src.llama_cloud._base_client.BasePageDefines the core interface for pagination.
func
src.llama_cloud._files.deepcopy_with_paths(item:_T, paths:Sequence[Sequence[str]]) -> _TCopy only the containers along the given paths.
func
src.llama_cloud._models.build(base_model_cls:Callable[P, _BaseModelT], *args:P.args, **kwargs:P.kwargs) -> _BaseModelTConstruct a BaseModel class without validation.
func
src.llama_cloud._models.set_pydantic_config(typ:Any, config:pydantic.ConfigDict) -> NoneAdd a pydantic config for the given type.
class
src.llama_cloud._polling.PollingErrorRaised when a job fails during polling.
class
src.llama_cloud._polling.PollingTimeoutErrorRaised when polling times out before completion.
method
src.llama_cloud._streaming.Stream.close() -> NoneClose the response and release the connection.
func
src.llama_cloud._utils._json.openapi_dumps(obj:Any) -> bytesSerialize an object to UTF-8 encoded JSON bytes.
class
src.llama_cloud._utils._resources_proxy.ResourcesProxyA proxy for the `llama_cloud.resources` module.
func
src.llama_cloud._utils._typing.is_iterable_type(typ:type) -> boolIf the given type is `typing.Iterable[T]`
func
src.llama_cloud._utils._utils.quote(string:str) -> strAdd single quotation marks around the given string.
func
src.llama_cloud._utils._utils.removeprefix(string:str, prefix:str) -> strRemove a prefix from a string.
func
src.llama_cloud._utils._utils.removesuffix(string:str, suffix:str) -> strRemove a suffix from a string.
class
src.llama_cloud.lib.index.base.LlamaCloudIndexA managed index that stores documents in LlamaCloud.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.ainsert(document:Document, verbose:bool=False, **insert_kwargs:Any) -> NoneInsert a document.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.as_retriever(**kwargs:Any) -> BaseRetrieverReturn a Retriever for this managed index.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.aupdate_ref_doc(document:Document, verbose:bool=False, **update_kwargs:Any) -> NoneUpserts a document and its corresponding nodes.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.aupload_file(file_path:str, custom_metadata:Optional[dict[str, Any]]=None, verbose:bool=False, wait_for_ingestion:bool=True, raise_on_error:bool=False) -> strUpload a file to the index.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.build_index_from_nodes(nodes:Sequence[BaseNode], **build_kwargs:Any) -> IndexDictBuild the index from nodes.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.delete_nodes(node_ids:List[str], delete_from_docstore:bool=False, **delete_kwargs:Any) -> NoneDelete a set of nodes.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.id() -> strReturn the pipeline (aka index) ID.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.insert(document:Document, verbose:bool=False, **insert_kwargs:Any) -> NoneInsert a document.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.insert_nodes(nodes:Sequence[BaseNode], **insert_kwargs:Any) -> NoneInsert a set of nodes.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.update_ref_doc(document:Document, verbose:bool=False, **update_kwargs:Any) -> NoneUpserts a document and its corresponding nodes.
method
src.llama_cloud.lib.index.base.LlamaCloudIndex.upload_file(file_path:str, custom_metadata:Optional[dict[str, Any]]=None, verbose:bool=False, wait_for_ingestion:bool=True, raise_on_error:bool=False) -> strUpload a file to the index.
class
src.llama_cloud.types.b_box.BBoxBounding box with coordinates and optional metadata.
class
src.llama_cloud.types.batch_create_params.ConfigJobJob to create for each file in the source directory.
class
src.llama_cloud.types.batch_create_response.BatchCreateResponseA top-level batch.
class
src.llama_cloud.types.batch_create_response.ConfigBatch configuration snapshot.
class
src.llama_cloud.types.batch_create_response.ResultJobReferenceReference to a job produced by a batch.
class
src.llama_cloud.types.batch_get_response.BatchGetResponseA top-level batch.
class
src.llama_cloud.types.batch_get_response.ConfigBatch configuration snapshot.
class
src.llama_cloud.types.batch_get_response.ConfigJobJob to create for each file in the source directory.
class
src.llama_cloud.types.batch_get_response.ResultJobReferenceReference to a job produced by a batch.
class
src.llama_cloud.types.batch_list_response.BatchListResponseA top-level batch.
class
src.llama_cloud.types.batch_list_response.ConfigBatch configuration snapshot.
class
src.llama_cloud.types.batch_list_response.ConfigJobJob to create for each file in the source directory.
class
src.llama_cloud.types.batch_list_response.ResultJobReferenceReference to a job produced by a batch.
class
src.llama_cloud.types.beta.agent_data.AgentDataAPI Result for a single agent data item
class
src.llama_cloud.types.beta.batch_cancel_response.BatchCancelResponseResponse after cancelling a batch job.
class
src.llama_cloud.types.beta.batch_create_response.BatchCreateResponseResponse schema for a batch processing job.
class
src.llama_cloud.types.beta.batch_get_status_response.JobResponse schema for a batch processing job.
class
src.llama_cloud.types.beta.batch_list_response.BatchListResponseResponse schema for a batch processing job.
class
src.llama_cloud.types.beta.chat_create_response.JobMetadataToken usage and status from the most recent run.
class
src.llama_cloud.types.beta.chat_list_response.JobMetadataToken usage and status from the most recent run.
class
src.llama_cloud.types.beta.chat_retrieve_response.JobMetadataToken usage and status from the most recent run.
class
src.llama_cloud.types.beta.directories.file_add_response.FileAddResponseAPI response schema for a directory file.
class
src.llama_cloud.types.beta.directories.file_get_response.FileGetResponseAPI response schema for a directory file.
class
src.llama_cloud.types.beta.directories.file_list_response.FileListResponseAPI response schema for a directory file.
class
src.llama_cloud.types.beta.directories.file_update_response.FileUpdateResponseAPI response schema for a directory file.
class
src.llama_cloud.types.beta.directories.file_upload_response.FileUploadResponseAPI response schema for a directory file.
class
src.llama_cloud.types.beta.directory_create_response.DirectoryCreateResponseAPI response schema for a directory.
class
src.llama_cloud.types.beta.directory_get_response.DirectoryGetResponseAPI response schema for a directory.
class
src.llama_cloud.types.beta.directory_list_response.DirectoryListResponseAPI response schema for a directory.
class
src.llama_cloud.types.beta.directory_update_response.DirectoryUpdateResponseAPI response schema for a directory.
class
src.llama_cloud.types.beta.extracted_data.PageDimensionsDimensions of a page in the source document.
class
src.llama_cloud.types.beta.retrieval_find_response.RetrievalFindResponseA file returned by find.
class
src.llama_cloud.types.beta.retrieval_grep_response.RetrievalGrepResponseA single grep match within a file.
class
src.llama_cloud.types.beta.retrieval_read_response.RetrievalReadResponseFile read result.
class
src.llama_cloud.types.beta.retrieval_retrieve_response.ResultA single retrieval result.
class
src.llama_cloud.types.beta.retrieval_retrieve_response.RetrievalRetrieveResponseResponse containing retrieval results.
class
src.llama_cloud.types.beta.sheets_job.ParametersJob-time parameters such as webhook configurations.
class
src.llama_cloud.types.beta.sheets_job.SheetsJobA spreadsheet parsing job.
class
src.llama_cloud.types.beta.sheets_job.WorksheetMetadataMetadata about a worksheet in a spreadsheet
class
src.llama_cloud.types.beta.split_category.SplitCategoryCategory definition for document splitting.
class
src.llama_cloud.types.beta.split_category_param.SplitCategoryParamCategory definition for document splitting.
class
src.llama_cloud.types.beta.split_create_params.ConfigurationSplittingStrategyStrategy for splitting documents.
class
src.llama_cloud.types.beta.split_document_input.SplitDocumentInputDocument input specification for beta API.
class
src.llama_cloud.types.beta.split_document_input_param.SplitDocumentInputParamDocument input specification for beta API.
class
src.llama_cloud.types.beta.split_result_response.SplitResultResponseResult of a completed split job.
class
src.llama_cloud.types.beta.split_segment_response.SplitSegmentResponseA segment of the split document.
class
src.llama_cloud.types.classifier.classify_job.ClassifyJobA classify job.
class
src.llama_cloud.types.classifier.classify_job_param.ClassifyJobParamA classify job.
class
src.llama_cloud.types.classifier.job_get_results_response.ItemA file classification.
class
src.llama_cloud.types.classifier.job_get_results_response.ItemResultResult of classifying a single file.
class
src.llama_cloud.types.classify_configuration.ClassifyConfigurationConfiguration for a classify job.
class
src.llama_cloud.types.classify_configuration.ParsingConfigurationParsing configuration for classify jobs.
class
src.llama_cloud.types.classify_configuration.RuleA rule for classifying documents.
class
src.llama_cloud.types.classify_configuration_param.ClassifyConfigurationParamConfiguration for a classify job.
class
src.llama_cloud.types.classify_configuration_param.ParsingConfigurationParsing configuration for classify jobs.
class
src.llama_cloud.types.classify_configuration_param.RuleA rule for classifying documents.
class
src.llama_cloud.types.classify_create_response.ClassifyCreateResponseResponse for a classify job.
class
src.llama_cloud.types.classify_get_response.ClassifyGetResponseResponse for a classify job.
class
src.llama_cloud.types.classify_list_response.ClassifyListResponseResponse for a classify job.
class
src.llama_cloud.types.classify_result.ClassifyResultResult of classifying a document.
class
src.llama_cloud.types.classify_v2_parameters.ParsingConfigurationParsing configuration for classify jobs.
class
src.llama_cloud.types.classify_v2_parameters.RuleA rule for classifying documents.
class
src.llama_cloud.types.classify_v2_parameters_param.ParsingConfigurationParsing configuration for classify jobs.
class
src.llama_cloud.types.classify_v2_parameters_param.RuleA rule for classifying documents.
class
src.llama_cloud.types.data_sink.DataSinkSchema for a data sink.
class
src.llama_cloud.types.data_sink_create_param.DataSinkCreateParamSchema for creating a data sink.
class
src.llama_cloud.types.data_source.DataSourceSchema for a data source.
class
src.llama_cloud.types.extract_job_metadata.ExtractJobMetadataExtraction metadata.
class
src.llama_cloud.types.extract_job_usage.ExtractJobUsageExtraction usage metrics.
class
src.llama_cloud.types.extract_v2_job.ExtractV2JobAn extraction job.
class
src.llama_cloud.types.extract_v2_job.MetadataJob-level metadata.
class
src.llama_cloud.types.extract_v2_job_query_response.ExtractV2JobQueryResponsePaginated list of extraction jobs.
class
src.llama_cloud.types.extract_v2_schema_validate_response.ExtractV2SchemaValidateResponseResponse schema for schema validation.
class
src.llama_cloud.types.file.FileSchema for a file.
class
src.llama_cloud.types.file_create_response.FileCreateResponseAn uploaded file.
class
src.llama_cloud.types.file_list_response.FileListResponseAn uploaded file.
class
src.llama_cloud.types.file_query_params.FilterFilter parameters for file queries.
class
src.llama_cloud.types.file_query_response.FileQueryResponsePaginated list of files.
class
src.llama_cloud.types.file_query_response.ItemAn uploaded file.
class
src.llama_cloud.types.form_list_text_item.FormListTextItemOne line of a form's list representation.
class
src.llama_cloud.types.form_table_cell_items.FormTableCellItemsA table cell holding its own form nodes (e.g.
class
src.llama_cloud.types.metadata_filters.MetadataFiltersMetadata filters for vector stores.
class
src.llama_cloud.types.metadata_filters_param.MetadataFiltersParamMetadata filters for vector stores.
class
src.llama_cloud.types.page_figure_node_with_score.PageFigureNodeWithScorePage figure metadata with score
class
src.llama_cloud.types.page_screenshot_node_with_score.PageScreenshotNodeWithScorePage screenshot metadata with score
class
src.llama_cloud.types.parse_v2_parameters.ParseV2ParametersConfiguration for LlamaParse v2 document parsing.
class
src.llama_cloud.types.parse_v2_parameters.ProcessingControlTimeoutsTimeout settings for job execution.
class
src.llama_cloud.types.parse_v2_parameters_param.ProcessingControlTimeoutsTimeout settings for job execution.
class
src.llama_cloud.types.parsing_create_params.ProcessingControlTimeoutsTimeout settings for job execution.
class
src.llama_cloud.types.parsing_create_response.ParsingCreateResponseA parse job.
class
src.llama_cloud.types.parsing_get_response.FormsPer-page form analysis results (one entry per page).
class
src.llama_cloud.types.parsing_get_response.FormsPageFailedFormsPageA page whose processing failed.
class
src.llama_cloud.types.parsing_get_response.FormsPageFormsResultPageForms found on one page.
class
src.llama_cloud.types.parsing_get_response.ImagesContentMetadataMetadata for all extracted images.
class
src.llama_cloud.types.parsing_get_response.ImagesContentMetadataImageMetadata for a single extracted image.
class
src.llama_cloud.types.parsing_get_response.ImagesContentMetadataImageBboxBounding box for an image on its page.
class
src.llama_cloud.types.parsing_get_response.ItemsStructured JSON result (if requested)
class
src.llama_cloud.types.parsing_get_response.JobParse job status and metadata
class
src.llama_cloud.types.parsing_get_response.MarkdownMarkdown result (if requested)
class
src.llama_cloud.types.parsing_get_response.TextPlain text result (if requested)
class
src.llama_cloud.types.parsing_list_response.ParsingListResponseA parse job.
class
src.llama_cloud.types.parsing_upload_file_response.ParsingUploadFileResponseResponse schema for a parse job.
class
src.llama_cloud.types.pipeline.ConfigHashHashes for the configuration of a pipeline.
class
src.llama_cloud.types.pipeline.EmbeddingModelConfigSchema for an embedding model config.
class
src.llama_cloud.types.pipeline.PipelineSchema for a pipeline.
class
src.llama_cloud.types.pipelines.cloud_document.CloudDocumentCloud document stored in S3.
class
src.llama_cloud.types.pipelines.cloud_document_create_param.CloudDocumentCreateParamCreate a new cloud document.
class
src.llama_cloud.types.pipelines.pipeline_data_source.PipelineDataSourceSchema for a data source in a pipeline.
class
src.llama_cloud.types.pipelines.pipeline_file.PipelineFileA file associated with a pipeline.
class
src.llama_cloud.types.pipelines.text_node.TextNodeProvided for backward compatibility.
class
src.llama_cloud.types.presigned_url.PresignedURLSchema for a presigned URL.
class
src.llama_cloud.types.project.ProjectSchema for a project.
class
src.llama_cloud.types.shared.cloud_astra_db_vector_store.CloudAstraDBVectorStoreCloud AstraDB Vector Store.
class
src.llama_cloud.types.shared.cloud_azure_ai_search_vector_store.CloudAzureAISearchVectorStoreCloud Azure AI Search Vector Store.
class
src.llama_cloud.types.shared.cloud_milvus_vector_store.CloudMilvusVectorStoreCloud Milvus Vector Store.
class
src.llama_cloud.types.shared.cloud_mongodb_atlas_vector_search.CloudMongoDBAtlasVectorSearchCloud MongoDB Atlas Vector Store.
class
src.llama_cloud.types.shared.cloud_pinecone_vector_store.CloudPineconeVectorStoreCloud Pinecone Vector Store.
class
src.llama_cloud.types.shared.cloud_qdrant_vector_store.CloudQdrantVectorStoreCloud Qdrant Vector Store.
class
src.llama_cloud.types.shared.pg_vector_hnsw_settings.PgVectorHnswSettingsHNSW settings for PGVector.
class
src.llama_cloud.types.shared_params.cloud_astra_db_vector_store.CloudAstraDBVectorStoreCloud AstraDB Vector Store.
class
src.llama_cloud.types.shared_params.cloud_azure_ai_search_vector_store.CloudAzureAISearchVectorStoreCloud Azure AI Search Vector Store.
class
src.llama_cloud.types.shared_params.cloud_milvus_vector_store.CloudMilvusVectorStoreCloud Milvus Vector Store.
class
src.llama_cloud.types.shared_params.cloud_mongodb_atlas_vector_search.CloudMongoDBAtlasVectorSearchCloud MongoDB Atlas Vector Store.
class
src.llama_cloud.types.shared_params.cloud_pinecone_vector_store.CloudPineconeVectorStoreCloud Pinecone Vector Store.
class
src.llama_cloud.types.shared_params.cloud_qdrant_vector_store.CloudQdrantVectorStoreCloud Qdrant Vector Store.
class
src.llama_cloud.types.shared_params.pg_vector_hnsw_settings.PgVectorHnswSettingsHNSW settings for PGVector.
class
src.llama_cloud.types.split_v1_parameters.SplittingStrategyStrategy for splitting documents.
class
src.llama_cloud.types.split_v1_parameters_param.SplittingStrategyStrategy for splitting documents.
About this data
These signatures were extracted from the public source of run-llama/llama-parse-py
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.