본문 바로가기
OpenAI

Langchain - 기본 구성 및 환경 셋팅

by 프갭 2024. 5. 2.
  • Langchain 개념
    • Langchain은 복잡한 LLM 애플리케이션 개발을 돕기 위한 오픈소스 프레임워크 이다.
    • 여러 장점중에 LLM 종류에 상관없이 다양한 LLM으로 쉽게 계발이 가능하며
    • 외부 데이터 베이스나 벡터 데이터베이스 검색 엔진등의 외부 컴포넌트를 통합 하여 사용이 용이 하다
    • LangSmith,LangServ등을 이용하여 모니터링 및 모델 평가등을 개발 가능 하게  한다.
  • 환경 구성
 

Latest Miniconda installer links by Python version — Anaconda documentation

Latest Miniconda installer links by Python version This list of Miniconda installers is for all supported versions of Python, separated by operating system. For an archive of Miniconda versions, see https://repo.anaconda.com/miniconda/. Windows installers

docs.anaconda.com

  • 환경 변수 설정

Environment Variables Click
Path->Edit Click

  • 가상환경 구성
가상환경구성
conda env create -n langchain -f lang_env.yml
가상환경 활성
conda activate langchain
--CondaError :Run 'conda init' before 'conda activate' 발생시
conda init

lang_env.yml
0.01MB

 

 

Documentation for Visual Studio Code

Find out how to set-up and get the most from Visual Studio Code. Optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

  • Visual Code 확장 프로그램 Pthon 설치
  • 테스트 실행

1_hellolangchain.ipynb 생성


print('hi')

반응형

'OpenAI' 카테고리의 다른 글

Langchain - 캐싱  (0) 2024.05.10
Langchain - Model 컴포넌트와 호출 방법  (0) 2024.05.03
Langchain - Hello Langchain  (0) 2024.05.03
Azure OpenAI + Google Search API + Chroma  (0) 2023.06.21

댓글