추론 모드로 법률 계약서 분석하기
V4-Pro의 추론 능력은 수학과 코드에만 국한되지 않습니다 — 텍스트 추론에서도 동일하게 뛰어난 성능을 발휘합니다. 이를 통해 길고 이해하기 어려운 법률 문서를 해석하고 분석할 수 있습니다.
직원의 계약 위반 여부를 판단하기 위해 한 문장으로 된 간단한 법률 계약서와 상황이 제공되었습니다.
이는 시연 속도를 위해 매우 단순화한 법률 문서 버전이지만, 이 개념은 더 큰 문서에도 그대로 적용됩니다.
기밀 문서에 AI를 사용하기 전에는 항상 법무팀이나 정보 보안팀과 상의하세요.
이 연습은 강의의 일부입니다
Python으로 DeepSeek 활용하기
연습 안내
prompt에Task,Contract,Situation구분자를 추가하세요.- 프롬프트를
deepseek-ai/DeepSeek-V4.1-Flash로 전송하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
client = OpenAI(api_key="", base_url="https://api.together.xyz/v1")
# Add the delimiters to the prompt
prompt = """[____: Determine whether the employee is in breach of contract.]
____:
The employee is not allowed to undertake work that generates an income of any sort.
____:
The employee is cleaning part-time for an hourly wage.
"""
# Send the prompt — V4-Pro reasons by default
response = client.chat.completions.create(model="deepseek-ai/DeepSeek-V4.1-Flash", messages=[{"role": "user", "content": ____}], max_tokens=600)
print(response.choices[0].message.content)