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