aurelio-labs/langchain-course
소개
All course material for the LangChain course from Aurelio AI.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLangChain Course
Welcome to the LangChain course by Aurelio AI!
Getting Started
Python Environment (IMPORTANT)
This course repo contains everything you need to install an exact duplicate Python environment as used during the course creation.
Installing Python Venvs
The Python packages are managed using the uv package manager, and so we must install uv as a prerequisite for the course. We do so by following the installation guide. For Mac users, as of 22 Oct 2024 enter the following in your terminal:
curl -LsSf https://astral.sh/uv/install.sh | sh
Once uv is installed and available in your terminal you can navigate to the course root directory and execute:
uv python install 3.12.7
uv venv --python 3.12.7
uv sync
❗️ You may need to restart the terminal if the
uvcommand is not recognized by your terminal.
With that we have our chapter venv installed. When working through the code for a specific chapter, always create a new venv to avoid dependency hell.
Using Venv in VS Code / Cursor
To use our new venv in VS Code or Cursor we simply execute:
cd example-chapter
cursor . # run via Cursor
code . # run via VS Code
This command will open a new code window, from here you open the relevant files (like Jupyter notebook files), click on the top-right Select Environment, click Python Environments..., and choose the top .venv environment provided.
Uninstalling Venvs
Naturally, we might not want to keep all of these venvs clogging up the memory on our system, so after completing the course we recommend removing the venv with:
deactivate
rm -rf .venv -r
Ollama
The course can be run using OpenAI or Ollama. If using Ollama, you must go to ollama.com and install Ollama for your respective OS (MacOS is recommended).
Whenever an LLM is used via Ollama you must:
Ensure Ollama is running by executing
ollama servein your terminal or running the Ollama application. Make sure to keep note of the port the server is running on, by default Ollama runs onhttp://localhost:11434Download the LLM being used in your current example using
ollama pull. For example, to download Llama 3.2 3B, we executeollama pull llama 3.2:3bin our terminal.
관련 프로젝트 살펴보기
불러오는 중…