> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.ragieai.core.CreateDocumentRaw

- Component: `appmixer.ragieai.core.CreateDocumentRaw`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.ragieai 1.1.4](https://connectors.appmixer.com/connector/appmixer.ragieai/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.ragieai/1.1.4/component/appmixer.ragieai.core.CreateDocumentRaw>

Ingest a document as raw text. The document goes through processing steps (pending → partitioning → partitioned → refined → chunked → indexed → summary_indexed → keyword_indexed → ready → failed). The document is available for retrieval once it reaches the ready state. The summary index step can take a few seconds. You can optionally use the document for retrieval once it is in indexed state, but the summary will only be available once the state has changed to summary_indexed or ready.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Data (`data`) | textarea | Document data in a text or JSON format. |
| Name (`name`) | text | An optional name for the document. If not set, the document will default to the current timestamp. |
| External ID (`externalId`) | text | An optional identifier for the document. A common value might be an id in an external system or the URL where the source file may be found. |
| Partition (`partition`) | text | An optional partition identifier. Documents can be scoped to a partition. Partitions must be lowercase alphanumeric and may only include the special characters _ and -. A partition is created any time a document is created. |
| Metadata (`metadata`) | textarea | Metadata for the document (JSON format). Keys must be strings. Values may be strings, numbers, booleans, or lists of strings. Numbers may be integers or floating point and will be converted to 64 bit floating point. 1000 total values are allowed. Each item in an array counts towards the total. Reserved keys for internal use: document_id, document_type, document_source, document_name, document_uploaded_at, start_time, end_time, chunk_content_type. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Status (`status`) | string | - |
| ID (`id`) | string | - |
| Created At (`created_at`) | string | - |
| Updated At (`updated_at`) | string | - |
| Name (`name`) | string | - |
| Metadata (`metadata`) | object | - |
| Partition (`partition`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.ragieai.core.CreateDocumentRaw",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Ingest a document as raw text. The document goes through processing steps (pending → partitioning → partitioned → refined → chunked → indexed → summary_indexed → keyword_indexed → ready → failed). The document is available for retrieval once it reaches the ready state. The summary index step can take a few seconds. You can optionally use the document for retrieval once it is in indexed state, but the summary will only be available once the state has changed to summary_indexed or ready.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:ragieai"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "externalId": {
            "type": "string"
          },
          "partition": {
            "type": "string"
          },
          "metadata": {
            "type": "string"
          }
        },
        "required": [
          "data"
        ]
      },
      "inspector": {
        "inputs": {
          "data": {
            "type": "textarea",
            "tooltip": "Document data in a text or JSON format.",
            "label": "Data",
            "index": 0
          },
          "name": {
            "type": "text",
            "tooltip": "An optional name for the document. If not set, the document will default to the current timestamp.",
            "label": "Name",
            "index": 1
          },
          "externalId": {
            "type": "text",
            "tooltip": "An optional identifier for the document. A common value might be an id in an external system or the URL where the source file may be found.",
            "label": "External ID",
            "index": 2
          },
          "partition": {
            "type": "text",
            "tooltip": "An optional partition identifier. Documents can be scoped to a partition. Partitions must be lowercase alphanumeric and may only include the special characters _ and -. A partition is created any time a document is created.",
            "label": "Partition",
            "index": 3
          },
          "metadata": {
            "type": "textarea",
            "tooltip": "Metadata for the document (JSON format). Keys must be strings. Values may be strings, numbers, booleans, or lists of strings. Numbers may be integers or floating point and will be converted to 64 bit floating point. 1000 total values are allowed. Each item in an array counts towards the total. Reserved keys for internal use: document_id, document_type, document_source, document_name, document_uploaded_at, start_time, end_time, chunk_content_type.",
            "label": "Metadata",
            "index": 4
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Status",
          "value": "status",
          "schema": {
            "type": "string",
            "example": "working"
          }
        },
        {
          "label": "ID",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "doc_abc123def456"
          }
        },
        {
          "label": "Created At",
          "value": "created_at",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "Updated At",
          "value": "updated_at",
          "schema": {
            "type": "string",
            "example": "2024-01-16T08:00:00Z"
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "output.pdf"
          }
        },
        {
          "label": "Metadata",
          "value": "metadata",
          "schema": {
            "type": "object",
            "example": {
              "source": "crm",
              "customer_id": "cus_1042"
            }
          }
        },
        {
          "label": "Partition",
          "value": "partition",
          "schema": {
            "type": "string",
            "example": "default"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
