Skip to main content

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

  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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_learning-0.1.0-py3-none-any.whl (240.6 kB view details)

Uploaded Python 3

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

Hashes for langchain_learning-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b58a1f6a69c69d069608aaaec1244d4b63ce583f54d7069fa3e02ea8f8b40d72
MD5 d2b71261e13e1a0baef9cc618c173c0c
BLAKE2b-256 dc3079e4105be0fa66ee491a71f906f5fb4b96a730ea76c92d193a77298e0b61

See more details on using hashes here.

File details

Details for the file langchain_learning-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_learning-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 066dd54c29fbd345fc3ad8a5a0eb7a56d1f021e2f62457e917a24b04f9d26fcc
MD5 f7912133a6bf8956d2634546159bed36
BLAKE2b-256 29980985be2b191e85b9a3c06ed2c52076df366e173b9729e32197129f0f07ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page