PulseAI-OpenAPI
  1. Dataset
PulseAI-OpenAPI
  • App
    • README
    • Send Chat Message
      POST
    • File Upload
      POST
    • Stop Generate
      POST
    • Message Feedback
      POST
    • Next Suggested Questions
      GET
    • Get Conversation History Messages
      GET
    • Get Conversations
      GET
    • Delete Conversation
      DELETE
    • Conversation Rename
      POST
    • Speech to Text
      POST
    • Text to Audio
      POST
    • Text to Audio V2
      POST
    • Get Application Information
      GET
    • Get Application Parameters
      GET
    • Get Application Meta Information
      GET
    • Create Chat
      POST
  • Dataset
    • README
    • Create a Document from Text
      POST
    • Create a Document from a File
      POST
    • Create an Empty Knowledge Base
      POST
    • Get Knowledge Base List
      GET
    • Delete a Knowledge Base
      DELETE
    • Update a Document with Text
      POST
    • Update a Document with a File
      POST
    • Get Document Embedding Status (Progress)
      GET
    • Delete a Document
      DELETE
    • Get the Document List of a Knowledge Base
      GET
    • Add Chunks to a Document
      POST
    • Get Chunks from a Document
      GET
    • Update a Chunk in a Document
      POST
    • Delete a Chunk in a Document
      DELETE
    • Retrieve Chunks from a Knowledge Base
      POST
  • Tenant
    • README
    • Get a List of Tenant Space Charactar
    • Figure txt2img
    • Get a List of Tenant Space Plot
    • Get a List of Tenant Space Audio
  • OpenAPI
    GET
  1. Dataset

Create a Document from Text

POST
https://api-platform.digitpulse.ai/v1/datasets/{dataset_id}/document/create-by-text
Last modified:2025-01-13 08:49:49
This API is based on an existing knowledge and creates a new document through text based on this knowledge.

Request

Path Params

Header Params

Body Params application/json

Example
{
    "name": "text",
    "text": "text",
    "indexing_technique": "high_quality",
    "process_rule": {
        "mode": "automatic"
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-platform.digitpulse.ai/v1/datasets//document/create-by-text' \
--header 'Authorization: ' \
--header 'X-Timestamp: 1739933362' \
--header 'X-Signature: 1739933362' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "text",
    "text": "text",
    "indexing_technique": "high_quality",
    "process_rule": {
        "mode": "automatic"
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "document": {
        "id": "",
        "position": 1,
        "data_source_type": "upload_file",
        "data_source_info": {
            "upload_file_id": ""
        },
        "dataset_process_rule_id": "",
        "name": "text.txt",
        "created_from": "api",
        "created_by": "",
        "created_at": 1695690280,
        "tokens": 0,
        "indexing_status": "waiting",
        "error": null,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "archived": false,
        "display_status": "queuing",
        "word_count": 0,
        "hit_count": 0,
        "doc_form": "text_model"
    },
    "batch": ""
}
Modified at 2025-01-13 08:49:49
Previous
README
Next
Create a Document from a File
Built with