Skip to main content

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

  1. Clone the repository:
git clone <repository-url>
cd langchain-learning
  1. Create and activate virtual environment:
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On Linux/Mac
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your API keys

Examples

The examples/ directory contains learning scripts:

  • LangChain-1.py to LangChain-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

  1. Basics: Embeddings, vector stores, document loaders
  2. Chains: Sequential chains, transformation chains
  3. Agents: Tool-using agents, reasoning agents
  4. Memory: Conversation memory, entity memory
  5. Advanced: Retrieval-augmented generation (RAG), multi-modal chains

Resources

License

This project is for educational purposes.

#cd examples #python demo_embeddings.py

Metadata

Release files for langchain-learning 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-learning 0.1.0
File Size Uploaded Provenance Actions
langchain_learning-0.1.0.tar.gz 143.3 kB Without provenance Details for langchain_learning-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-learning 0.1.0
File Interpreter ABI Platform Actions
langchain_learning-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_learning-0.1.0-py3-none-any.whl

Total release size: 384.0 kB

Release files / langchain_learning-0.1.0.tar.gz

Download URL langchain_learning-0.1.0.tar.gz
Size 143.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b58a1f6a69c69d069608aaaec1244d4b63ce583f54d7069fa3e02ea8f8b40d72
BLAKE2b-256 checksum
How to use checksums
dc3079e4105be0fa66ee491a71f906f5fb4b96a730ea76c92d193a77298e0b61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.14.0 Windows/10

Release files / langchain_learning-0.1.0-py3-none-any.whl

Download URL langchain_learning-0.1.0-py3-none-any.whl
Size 240.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
066dd54c29fbd345fc3ad8a5a0eb7a56d1f021e2f62457e917a24b04f9d26fcc
BLAKE2b-256 checksum
How to use checksums
29980985be2b191e85b9a3c06ed2c52076df366e173b9729e32197129f0f07ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.14.0 Windows/10

Security for langchain-learning 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page