파운데이션 모델의 응답 동작을 구성하는 데 사용
함수를 통해서 각 모델별 파라미터를 지정
Temperature : 무작위성을 제어 , 값이 낮을수록 확률 높은 토큰이 선택되고 , 높을수록 무작위성과 다양성이 추가
TOP P : 최상단 P개의 정보를 추출 ( 비율로 정보의 중요도를 판단)
TOP K : 최상단 K개의 정보를 추출 ( K는 가장 중요도가 높은 토큰의 갯수)
LangChain Bedrock 클라이언트를 인스턴스화하고 모델을 설정하고 모델에 대한 추론 매개변수를 가져옴
def get_text_response(model, input_content): #text-to-text 클라이언트 함수
model_kwargs = get_inference_parameters(model) #선택한 모델에 따른 기본 매개변수 할당
llm = Bedrock( #Bedrock llm 클라이언트 생성
model_id=model,
model_kwargs = model_kwargs
)
return llm.invoke(input_content) #프롬프트에 대한 응답 반환
anthropic.claude-v2
Here are some recommendations for the best restaurants in Gangnam, Seoul:
- Jungsik - Contemporary Korean fine dining by chef Jungsik Yim. Known for innovative Korean tasting menus and stylish interior.
- Normal - Casual American bistro by chef Daniel Gray. Features locally-sourced ingredients in dishes like burgers, steaks, and salads. Great craft beer selection.
- Mingles - Michelin-starred contemporary Korean restaurant led by chef Mingoo Kang. Offers tasting menus that blend Korean flavors with modern techniques. Elegant atmosphere.
- Park Seo-won - High-end traditional Korean cuisine known for artful presentations. Specializes in royal court dishes. Intimate and refined setting.
- La Yeon - The only 3 Michelin star Korean restaurant in Seoul, located in The Shilla hotel. Serves exquisite modern Korean haute cuisine in an elegant environment.
- Samwon Garden - Popular Korean barbecue restaurant chain known for high quality meat and banchan. Lively, casual ambiance. The Gangnam location is very large.
- Ssamzigil - Casual but upscale Korean barbecue spot focusing on quality ingredients. Known for its premium wagyu beef.
- Gaon - Trendy Korean restaurant with a hip interior design. Offers creative takes on traditional and modern Korean dishes. Good for groups.
I'd recommend making reservations in advance for any of these popular restaurants. Jungsik, Mingles, La Yeon and Ssamzigil are especially acclaimed fine dining experiences in Gangnam.
cohere.command-text-v14
Gangnam is a popular district in Seoul, South Korea, known for its vibrant nightlife and diverse culinary scene. Here are some of the top-rated restaurants in Gangnam, based on customer reviews and ratings:
- **Jungsik** - This restaurant is known for its modern Korean cuisine, with a focus on seasonal ingredients and innovative dishes. It has been awarded a Michelin star and has received positive reviews for its creative menu and attentive service.
- **Gaon** - This restaurant serves traditional Korean dishes, with a focus on traditional recipes and ingredients. It has received positive reviews for its authentic and flavorful dishes, as well as its cozy atmosphere.
- **Ossu Seiromushi** - This restaurant specializes in Japanese cuisine, particularly sushi and other seafood dishes. It has received positive reviews for its fresh ingredients and flavorful dishes, as well as its attentive service.
- **Sobahn** - This restaurant serves modern Korean cuisine, with a focus on fusion dishes and international flavors. It has received positive reviews for its creative menu and flavorful dishes, as well as its cozy atmosphere.
These are just a few of the many excellent restaurants in Gangnam. It is recommended to check the latest reviews and ratings before making a decision, as the culinary scene in Gangnam is constantly evolving and new restaurants are opening all the time.