추론 모드로 법률 계약서 분석하기
V4-Pro의 추론 능력은 수학과 코드에만 뛰어난 것이 아니라, 텍스트 추론에도 동일하게 능숙합니다. 이 덕분에 흔히 길고 이해하기 어려운 법률 문서를 해석하고 분석하는 데에도 활용할 수 있습니다.
간단한 한 문장짜리 법률 계약서와, 특정 직원이 계약을 위반했는지 판단해야 하는 상황이 주어졌습니다.
빠른 시연을 위해 매우 단순화된 법률 문서를 사용했지만, 이 개념은 더 큰 규모의 문서에도 동일하게 적용할 수 있습니다.
기밀 문서에 AI를 사용하기 전에는 반드시 법무팀 또는 정보 보안팀과 상의하세요.
이 연습은 강의의 일부입니다
Python으로 DeepSeek 활용하기
연습 안내
prompt에Task,Contract,Situation구분자(Delimiters)를 추가하세요.deepseek-ai/DeepSeek-V4-Pro-0813에 프롬프트를 전송하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
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-Pro-0813", messages=[{"role": "user", "content": ____}], max_tokens=600)
print(response.choices[0].message.content)