---
title: "AI35-12 Novelty Check - Add Comparison Document or Patent"
method: POST
path: "/ai/novelty-search/feature/comparison/generate"
tags: ["Novelty Search"]
---

# AI35-12 Novelty Check - Add Comparison Document or Patent

`POST /ai/novelty-search/feature/comparison/generate`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/ai/novelty-search/feature/comparison/generate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/ai/novelty-search/feature/comparison/generate/post.ts> (a function with typed inputs; its response is checked against the schema)

For cases where the user needs to manually add comparison documents or patents, the output parameters of this interface can be used as part of the input parameters for the 'final_result' in '[AI35-9] Novelty Search - Confirm Filter List and Feature Comparison'.

## Request body

- AI3512ComparisonGenerateRequest
  - `request` AI3512ComparisonGenerateFeatureComparisonRequestDTO, required
    - `add_patent_selected` boolean: Whether the newly added patent is selected for literature confirmation by default
    - `is_add_patent` boolean: Whether to add patent
    - `pn` string, required: Patent PN number
  - `tech_features` AI3512ComparisonGenerateNoveltySearchFeatureExtractDataDTO[], required: Technical features list
    - `feature_elements` string: Feature elements
    - `feature_function` string: Feature function
    - `feature_num` string: Feature number
    - `feature_text` string: Feature text
    - `feature_text_original` string: Original feature text
    - `feature_weight` string: Feature weight
    - `feature_weight_reason` string: Feature weight reason
    - `selected` boolean: Selected
    - `user_add` boolean: User added

## Response `200`

Successful ai35-12 novelty check - add comparison document or patent response.

- AI3512ComparisonGenerateResponse
  - `data` AI3512ComparisonGenerateFeatureComparisonResponseDTO
    - `final_res` AI3512ComparisonGenerateFeatureComparisonFinalResItem[]: Final results
      - `lang` string: Language
      - `claims` AI3512ComparisonGenerateFeatureComparisonFinalResClaim[]: Claims original text list
        - `claim_num` integer: Claim number (claim 1, claim 2, claim 3)
        - `claim_text` string: Claim original text
      - `document` string: Document
      - `features` AI3512ComparisonGenerateFeatureComparisonFinalResFeature[]: Feature list
        - `type` string: CC tag type
        - `score` integer: Score
        - `differ` string: Difference identifier
        - `public_score` integer: Disclosure score
        - `tech_feature` string: Technical feature
        - `comparison_feature` string: Comparison feature
      - `patent_id` string: Patent ID
      - `public_score` number, float: Disclosure score
    - `threshold` integer: Threshold
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `201`: Created.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
