This operation retrieves relevant cases based on a user’s problem description. The system uses a Large Language Model (LLM) to parse the input, generate search conditions, and identify matching cases.
Operation description
- You can use this operation after activating the pay-as-you-go service for the FaRui product. Activation is free. To call the OpenAPI service, use your account's AccessKey and AccessSecret.
- Calling this API requires workspace permissions on the Alibaba Cloud Model Studio platform.
Debugging
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
No authorization information is available for this API.
Request syntax
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | No | The workspace ID of Alibaba Cloud Model Studio. | llm-9w5y60lseff0jiqm |
| appId | string | No | The application ID. | farui |
| thread | object | No | The thread. | |
| messages | array<object> | No | The request context. | |
| object | No | The request context. | ||
| content | string | No | The conversation content. | My friend borrowed 100,000 yuan from me and agreed to return it in two months without interest. Half a year has passed and he still hasn't repaid it. Can I demand additional interest? |
| role | string | No | The role in the conversation. | user |
| query | string | Yes | The question to query. | On September 19, the naval hospital ship "Peace Ark", which was carrying out the "Harmony Mission-2023", returned to Zhoushan after visiting 5 countries including Kiribati, Tonga, Vanuatu, Solomon Islands, and Timor-Leste. How many people were treated? |
| queryKeywords | array | No | An array of search keywords. | |
| string | No | A search keyword. | ["theft","robbery"] | |
| pageParam | object | Yes | The paging parameters. | |
| pageNumber | integer | No | The page number. | 1 |
| pageSize | integer | No | The number of entries per page. The default is 10. The maximum is 200. | 10 |
| sortKeyAndDirection | object | No | The sorting mapping. | |
| string | No | The sorting field. `trialYearMonthDate` indicates the trial date. `asc` means ascending order. `desc` means descending order. | {"trialYearMonthDate":"desc"} | |
| filterCondition | object | No | The filter condition. | |
| caseTitle | string | No | The title of the legal document. | Yang Huaiping, Guangzhou Public Security Bureau Yuexiu Branch, public security administrative management: other (public security) second-instance administrative judgment |
| caseNo | string | No | The case number of the legal document. | (2017) Yue71 XingZhong No.2214 |
| referLevel | string | No | The case type. Only `Other`, `Reference`, and `Guiding` are supported. The default is `Other` (ordinary case). | Other |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| requestId | string | Id of the request | C844BE6B-33A9-5AC4-A1AE-97B131849E0F |
| data | object | The returned information. | |
| caseResult | array<object> | The setting result. If the setting is successful, the value is success. If the setting fails, the value is an error code description. For more information, see the error codes of this API. | |
| Specific result | object | The setting result. If the setting is successful, the value is success. If the setting fails, the value is an error code description. For more information, see the error codes of this API. | |
| caseDomain | object | The case information. | |
| abstractObj | string | The case summary. | Case summary |
| appliedLaws | string | The legal basis and applied laws. | Legal basis, applied laws |
| caseBasic | string | The basic facts of the case. | Basic facts of the case |
| caseFeature | string | The features of the case. | Case features |
| basicCase | string | The basic case details. | Basic case details |
| caseId | string | The case ID. | Case ID |
| caseNo | string | The case number. | Case number |
| caseSummary | string | The case overview. | Case overview |
| caseTitle | string | The document name. | Document name |
| caseType | string | The case type. | Case type |
| closeCaseCause | string | The cause for closing the case. | Cause for closing case |
| courtFindOut | string | The court's findings. | Findings of the court |
| courtThink | string | The court's opinion. | Opinion of the court |
| dataFrom | string | The data source. | Data source |
| disputeFocus | string | The focus of the dispute. | Focus of dispute |
| disputeFocusTag | array | Paragraphs about the focus of the dispute. | |
| Dispute focus | string | A paragraph about the focus of the dispute. | Dispute focus paragraph |
| disputedpoints | string | The points of dispute. | Points of dispute |
| keyfacts | string | The core facts. | Core facts |
| legalBasis | string | The legal basis. | Legal basis |
| documentType | string | The document type. | Document type |
| litigants | string | The litigants. | Litigants |
| litigationParticipant | string | The litigation participants. | Litigation participants |
| openCaseCause | string | The cause for filing the case. | Cause for filing case |
| preTrialProcess | string | The details of the original trial. | Original trial situation |
| referLevel | string | The reference type. | Reference type |
| sourceContent | string | The main text of the document. | Document main text |
| trialCourt | object | Information about the trial court. | |
| city | string | The city. | Zunyi |
| commonLevel | string | The level of the trial court. | Primary People's Court |
| country | string | The country. | China |
| county | string | The county or area. | Bozhou District |
| district | string | The district. | Bozhou District |
| name | string | The name of the court. | Zunyi City Bozhou District People's Court |
| province | string | The province. | Guizhou Province |
| specialLevel | string | The court level. | “” |
| trialDate | string | The trial date. | 2018-09-27 |
| trialLevel | string | The trial level. | Trial level |
| trialProcess | string | The trial process. | Trial process |
| trialProgram | string | The trial procedure. | Trial procedure |
| verdict | string | The verdict paragraph. | Verdict paragraph |
| caseCause | string | The cause of action. | Cause of action |
| judgReason | string | The reasoning for the judgment. | Judgment reasoning |
| refereeGist | string | The key points of the judgment. | Key points of judgment |
| similarity | string | The similarity score. | 0.88 |
| mode | string | Used for frontend rendering. | normal |
| caseLevel | string | The case level. | "[{\"id\":\"Guiding\",\"label\":\"Guiding case\"}]" |
| currentPage | integer | The page number. | 1 |
| pageSize | integer | The number of entries displayed per page. | 10 |
| query | string | The name of the field to filter by. | Cases on whether administrative penalties made by administrative organs in violation of statutory procedures should be revoked |
| queryKeywords | array | An array of keywords. | |
| Keyword list | string | A keyword. | "Administrative organ" |
| totalCount | long | The total number of returned results. | 1 |
| httpStatusCode | long | The HTTP status code. | 200 |
| message | string | The response message. | Empty on success |
| code | string | The response status code. | null |
| success | boolean | Indicates whether the call was successful. | True |
Examples
Success response
JSON format