# \#api-tool-use

**URL:** https://discuss.pytorch.kr/tag/api-tool-use/2158.md

[최신](https://discuss.pytorch.kr/latest.md) · [카테고리](https://discuss.pytorch.kr/categories.md) · [태그](https://discuss.pytorch.kr/tags.md)

---

## [ollama, 도구 호출 기능(tool support) 추가](https://discuss.pytorch.kr/t/ollama-tool-support/5072)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [8월 20, 2024, 10:04오후 UTC](https://discuss.pytorch.kr/t/ollama-tool-support/5072 "2024-08-20T22:04:34Z")

</div>

ollama의 tool support 기능 소개 Ollama는 이제 Llama 3.1과 같은 인기 모델과 함께 도구 호출을 지원합니다. 이를 통해 모델이 주어진 프롬프트에 대해 알고 있는 도구를 사용하여 더 복잡한 작업을 수행하거나 외부 세계와 상호작용할 수 있습니다. 예를 들어, 다음과 같은 도구들을 사용할 수 있습니다: 함수와 API 호출(Functions and APIs) 웹 브라우징 (Web browsing) 코드 해석기 (Code interpreter) 기타 다양한 도구들 https://github.com/user-attachments/assets/aea4d7c1-f1be-41fd-9077-023d37a9d052 도구 호출 예시 도구 호출을 활성화하려면 Ollama의 API에서 tools 필드를 통해 사용 가능한 도구 목록을 제공해야 합니다. 아래는 예시 코드입니다: import ollama response = ollama.chat( model='llama3.1', messages=\[{'role': 'user', 'content': 'What is the weather in Toronto?'}\], tools=\[{ 'type': 'function', 'function': { 'name': 'get\_current\_weather', 'description': 'Get the current weather for a city', 'parameters': { 'type': 'object', 'properties': { 'city': { 'type': 'string', 'description': 'The name of the city', …

---

## [\[GN\] Jina AI Reader - URL을 LLM 친화적인 입력으로 바꿔주는 도구](https://discuss.pytorch.kr/t/gn-jina-ai-reader-url-llm/4223)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [4월 26, 2024, 11:18오후 UTC](https://discuss.pytorch.kr/t/gn-jina-ai-reader-url-llm/4223 "2024-04-26T23:18:01Z")

</div>

Jina AI Reader - URL을 LLM 친화적인 입력으로 바꿔주는 도구 소개 URL의 내용을 읽어서 LLM에 입력하기 좋은 형태로 만들어주는 오픈소스 https://r.jina.ai/https://news.hada.io 처럼 Prefix 를 붙여서 쉽게 이용 가능 (무료 사용) 예. https://r.jina.ai/https://discuss.pytorch.kr/c/news/14 예. https://r.jina.ai/https://x.com/elonmusk 모든 이미지를 읽어서 Image \[idx\]: \[caption\] 형태의 설명도 붙여줌 스탠다드/스트리밍/JSON 세가지 모드로 사용 가능 헤더를 추가로 보내서 추가 기능 이용 x-respond-with: html : documentElement.outerHTML 리턴 x-respond-with: text : document.body.innerText 리턴 x-respond-with: screenshot : 웹페이지 스크린샷 URL을 리턴 기본 값은 x-respond-with: markdown 원문 프로젝트 홈페이지 GitHub 저장소 https://github.com/jina-ai/reader 출처 / GeekNews :information\_source: 알려드립니다 이 글은 국내외 IT 소식들을 공유하는 GeekNews의 운영자이신 xguru님께 허락을 받아 GeekNews에 게제된 AI 관련된 소식을 공유한 것입니다. 출처의 GeekNews 링크를 방문하시면 이 글과 관련한 추가적인 의견들을 보시거나 공유하실 수 있습니다! :wink: :gift: 아래:arrow\_lower\_right:쪽에 좋아요:heart:를 눌러주시면 새로운 소식을 정리하고 공유하는데 힘이 됩니다~ :star\_struck:

---

## [Anthropic, 200k 컨텍스트 윈도우 길이를 갖는 Claude 2.1 공개](https://discuss.pytorch.kr/t/anthropic-200k-claude-2-1/2910)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [11월 22, 2023, 11:24오전 UTC](https://discuss.pytorch.kr/t/anthropic-200k-claude-2-1/2910 "2023-11-22T11:24:49Z")

</div>

Anthtopic, Claude 2.1 공개 (Introducing Claude 2.1) https://player.vimeo.com/video/886299700?h=28cd9ba4ad 개요 Anthropic은 100k 토큰의 컨텍스트 윈도우를 갖는 Claude-2에 이어, 200k 토큰의 컨텍스트 윈도우를 갖는 Claude-2.1을 발표했습니다. Claude-2.1의 주요 개선 내용은 컨텍스트 윈도우의 확장 외에도 환각(hallucination) 감소와 LLM의 API 도구 사용 기능 등이 있습니다. 200k 컨텍스트 윈도우(200k Context Window) 클로드는 다양한 용도로 사용되어 왔으며, 사용자들은 더 큰 컨텍스트 창과 긴 문서에 대한 더 정확한 출력을 요구했습니다. 이에 응답하여, 클로드는 이제 200,000 토큰(약 150,000 단어 또는 500 페이지 이상의 자료)까지 처리할 수 있습니다. 이를 통해 사용자들은 기술 문서, 재무 제표, 긴 문학 작품 등을 업로드하고, 요약, 질문 및 답변, 추세 예측, 다중 문서 비교 등 다양한 작업을 수행할 수 있습니다. 절반 가량의 환각 감소율(2x Decrease in Hallucination Rates) 클로드 2.1은 이전 모델인 클로드 2.0에 비해 환각 답변이 2배 가량 감소했습니다. 이는 기업이 신뢰성 있는 AI 응용 프로그램을 구축하고 운영에 효과적으로 통합할 수 있도록 합니다. 클로드 2.1은 정확한 정보 제공에 있어 현저히 개선된 성능을 보였습니다. API 도구 사용 기능(API Tool Use) 클로드는 이제 사용자의 기존 프로세스, 제품 및 API와 통합될 수 있는 도구 사용 기능을 제공합니다. 사용자는 클로드가 사용할 도구 세트를 정의하고 요청을 명시할 수 있으며, 모델은 필요한 도구를 결정하고 사용자를 대신하여 작업을 수행합니다. 이러한 도구의 사용 예시는 다음과 같습니다: 복잡한 숫자 추론에 계산기 사용 자연어 요청을 구조화된 API 호출로 번역하기 데…
