Loading

Quipoin Menu

Learn • Practice • Grow

rag / Setting Up Environment
tutorial

Setting Up Environment

Before writing any RAG code, you need a clean Python environment. This chapter walks you through creating a virtual environment, activating it, and installing the essential libraries.

Why a Virtual Environment?

A virtual environment keeps your project dependencies isolated. Different projects may need different versions of the same library – virtual environments prevent conflicts.

Step 1: Create a Virtual Environment

python -m venv rag-env

Step 2: Activate the Environment

Windows:
rag-envScriptsactivate
Mac / Linux:
source rag-env/bin/activate
You will see the environment name in your terminal prompt.

Step 3: Install Core Libraries

pip install langchain chromadb sentence-transformers streamlit pypdf
We will install additional libraries as needed in later chapters.


Two Minute Drill
  • Use python -m venv env_name to create a virtual environment.
  • Activate with source env/bin/activate (Mac/Linux) or envScriptsactivate (Windows).
  • Install libraries with pip install.
  • Always work inside a virtual environment to avoid dependency conflicts.

Need more clarification?

Drop us an email at career@quipoinfotech.com