A structured learning project for LangChain and vector databases
Project description
LangChain Learning Project
A structured learning project for mastering LangChain and vector databases (Milvus).
Project Structure
langchain-learning/
├── src/ # Source code
│ ├── core/ # Core functionality modules
│ ├── chains/ # LangChain chains
│ ├── agents/ # LangChain agents
│ └── utils/ # Utility functions
├── examples/ # Example scripts (migrated from LangChain-*.py)
├── tests/ # Test code
├── docs/ # Documentation
├── data/ # Data files
└── config/ # Configuration files
Getting Started
Prerequisites
- Python 3.8+
- Milvus server (for vector database examples)
- API keys for AI services (DeepSeek, OpenAI, etc.)
Installation
- Clone the repository:
git clone <repository-url>
cd langchain-learning
- Create and activate virtual environment:
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On Linux/Mac
source .venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp .env.example .env
# Edit .env with your API keys
Examples
The examples/ directory contains learning scripts:
LangChain-1.pytoLangChain-22.py: Step-by-step tutorials- Each script demonstrates a specific LangChain/Milvus concept
Development
Code Quality Tools
- Black: Code formatting
- isort: Import sorting
- mypy: Static type checking
- pytest: Testing framework
- flake8: Linting
Running Tests
pytest
Code Formatting
black src tests
isort src tests
Learning Path
- Basics: Embeddings, vector stores, document loaders
- Chains: Sequential chains, transformation chains
- Agents: Tool-using agents, reasoning agents
- Memory: Conversation memory, entity memory
- Advanced: Retrieval-augmented generation (RAG), multi-modal chains
Resources
License
This project is for educational purposes.
#cd examples #python demo_embeddings.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langchain_learning-0.1.0.tar.gz
(143.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_learning-0.1.0.tar.gz.
File metadata
- Download URL: langchain_learning-0.1.0.tar.gz
- Upload date:
- Size: 143.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.14.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b58a1f6a69c69d069608aaaec1244d4b63ce583f54d7069fa3e02ea8f8b40d72
|
|
| MD5 |
d2b71261e13e1a0baef9cc618c173c0c
|
|
| BLAKE2b-256 |
dc3079e4105be0fa66ee491a71f906f5fb4b96a730ea76c92d193a77298e0b61
|
File details
Details for the file langchain_learning-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_learning-0.1.0-py3-none-any.whl
- Upload date:
- Size: 240.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.14.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
066dd54c29fbd345fc3ad8a5a0eb7a56d1f021e2f62457e917a24b04f9d26fcc
|
|
| MD5 |
f7912133a6bf8956d2634546159bed36
|
|
| BLAKE2b-256 |
29980985be2b191e85b9a3c06ed2c52076df366e173b9729e32197129f0f07ba
|