- Setup Environment
- Chat Models
- Prompt Templates
- Chains
- RAG (Retrieval-Augmented Generation)
- Agents & Tools
-
Clone the repository:
git clone git@github.com:davoshack/building-with-llms-training-session-2.git cd building-with-llms-training-session-2/docs/langchain-fundamentals -
Install requirements
pip install -r requirements.txt
-
Set up your environment variables:
- Rename the
.env.examplefile to.envand update the variables inside with your own values. Example:
mv .env.example .env
- Rename the
Here's a breakdown of the folders and what you'll find in each:
1_chat_model_basic.py2_chat_model_basic_conversation.py3_chat_model_alternatives.py4_chat_model_conversation_with_user.py5_chat_model_save_message_history_firestore.py
1_prompt_template_basic.py2_prompt_template_with_chat_model.py
1_chains_basics.py2_chains_under_the_hood.py3_chains_extended.py4_chains_parallel.py5_chains_branching.py
1a_rag_basics.py1b_rag_basics.py
agent_and_tools_basics.pyagent_react_chat.py