|
|
|
@ -1841,7 +1841,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
|
|
|
|
Query keyword
|
|
|
|
Query keyword
|
|
|
|
</Property>
|
|
|
|
</Property>
|
|
|
|
<Property name='retrieval_model' type='object' key='retrieval_model'>
|
|
|
|
<Property name='retrieval_model' type='object' key='retrieval_model'>
|
|
|
|
Retrieval model (optional, if not filled, it will be recalled according to the default method)
|
|
|
|
Retrieval parameters (optional, if not filled, it will be recalled according to the default method)
|
|
|
|
- <code>search_method</code> (text) Search method: One of the following four keywords is required
|
|
|
|
- <code>search_method</code> (text) Search method: One of the following four keywords is required
|
|
|
|
- <code>keyword_search</code> Keyword search
|
|
|
|
- <code>keyword_search</code> Keyword search
|
|
|
|
- <code>semantic_search</code> Semantic search
|
|
|
|
- <code>semantic_search</code> Semantic search
|
|
|
|
@ -1855,6 +1855,31 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
|
|
|
|
- <code>top_k</code> (integer) Number of results to return (optional)
|
|
|
|
- <code>top_k</code> (integer) Number of results to return (optional)
|
|
|
|
- <code>score_threshold_enabled</code> (bool) Whether to enable score threshold
|
|
|
|
- <code>score_threshold_enabled</code> (bool) Whether to enable score threshold
|
|
|
|
- <code>score_threshold</code> (float) Score threshold
|
|
|
|
- <code>score_threshold</code> (float) Score threshold
|
|
|
|
|
|
|
|
- <code>metadata_filtering_conditions</code> (object) Metadata filtering conditions
|
|
|
|
|
|
|
|
- <code>logical_operator</code> (string) Logical operator: <code>and</code> | <code>or</code>
|
|
|
|
|
|
|
|
- <code>conditions</code> (array[object]) Conditions list
|
|
|
|
|
|
|
|
- <code>name</code> (string) Metadata field name
|
|
|
|
|
|
|
|
- <code>comparison_operator</code> (string) Comparison operator, allowed values:
|
|
|
|
|
|
|
|
- String comparison:
|
|
|
|
|
|
|
|
- <code>contains</code>: Contains
|
|
|
|
|
|
|
|
- <code>not contains</code>: Does not contain
|
|
|
|
|
|
|
|
- <code>start with</code>: Starts with
|
|
|
|
|
|
|
|
- <code>end with</code>: Ends with
|
|
|
|
|
|
|
|
- <code>is</code>: Equals
|
|
|
|
|
|
|
|
- <code>is not</code>: Does not equal
|
|
|
|
|
|
|
|
- <code>empty</code>: Is empty
|
|
|
|
|
|
|
|
- <code>not empty</code>: Is not empty
|
|
|
|
|
|
|
|
- Numeric comparison:
|
|
|
|
|
|
|
|
- <code>=</code>: Equals
|
|
|
|
|
|
|
|
- <code>≠</code>: Does not equal
|
|
|
|
|
|
|
|
- <code>></code>: Greater than
|
|
|
|
|
|
|
|
- <code>< </code>: Less than
|
|
|
|
|
|
|
|
- <code>≥</code>: Greater than or equal
|
|
|
|
|
|
|
|
- <code>≤</code>: Less than or equal
|
|
|
|
|
|
|
|
- Time comparison:
|
|
|
|
|
|
|
|
- <code>before</code>: Before
|
|
|
|
|
|
|
|
- <code>after</code>: After
|
|
|
|
|
|
|
|
- <code>value</code> (string|number|null) Comparison value
|
|
|
|
</Property>
|
|
|
|
</Property>
|
|
|
|
<Property name='external_retrieval_model' type='object' key='external_retrieval_model'>
|
|
|
|
<Property name='external_retrieval_model' type='object' key='external_retrieval_model'>
|
|
|
|
Unused field
|
|
|
|
Unused field
|
|
|
|
@ -1879,7 +1904,17 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
|
|
|
|
"weights": null,
|
|
|
|
"weights": null,
|
|
|
|
"top_k": 1,
|
|
|
|
"top_k": 1,
|
|
|
|
"score_threshold_enabled": false,
|
|
|
|
"score_threshold_enabled": false,
|
|
|
|
"score_threshold": null
|
|
|
|
"score_threshold": null,
|
|
|
|
|
|
|
|
"metadata_filtering_conditions": {
|
|
|
|
|
|
|
|
"logical_operator": "and",
|
|
|
|
|
|
|
|
"conditions": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"name": "document_name",
|
|
|
|
|
|
|
|
"comparison_operator": "contains",
|
|
|
|
|
|
|
|
"value": "test"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}'`}
|
|
|
|
}'`}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
@ -2159,9 +2194,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
|
|
|
|
label="/datasets/{dataset_id}/documents/metadata"
|
|
|
|
label="/datasets/{dataset_id}/documents/metadata"
|
|
|
|
targetCode={`curl --location --request POST '${props.apiBaseUrl}/datasets/{dataset_id}/documents/metadata' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'\\\n--data-raw '{"operation_data": [{"document_id": "document_id", "metadata_list": [{"id": "id", "value": "value", "name": "name"}]}]}'`}
|
|
|
|
targetCode={`curl --location --request POST '${props.apiBaseUrl}/datasets/{dataset_id}/documents/metadata' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json'\\\n--data-raw '{"operation_data": [{"document_id": "document_id", "metadata_list": [{"id": "id", "value": "value", "name": "name"}]}]}'`}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
```bash {{ title: 'cURL' }}
|
|
|
|
```bash {{ title: 'cURL' }} </CodeGroup>
|
|
|
|
```
|
|
|
|
|
|
|
|
</CodeGroup>
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
|