Installing Required Packages
Setting up a virtual environment
Step 1: Create a Virtual Environment
Why?
To isolate project dependencies and avoid conflicts with other projects.
Commands:
After activation, your terminal should look like this:
This (env) confirms you're inside your virtual environment.
Installing LangChain, Gemini, FAISS, and DRF:
Step 2: Install Required
We'll now install the core packages needed to build AI-powered APIs.
Optional (for notebooks):
Step 3: Freeze Your Requirements
To share your environment with others, generate a requirements.txt
Now,anyone can recreate your setup using:
LangChain allows you to create prompt-based chatbots that feel natural and interactive.
Even with just a few lines of code, you can build a friendly AI assistant using LangChain and an LLM!