Skip to content

aliza-dev/langchain-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦œπŸ”— LangChain Models ExplorerA high-performance repository demonstrating the Model I/O layer of LangChain using OpenAI and Hugging Face.
πŸ“–

Overviewlangchain-models is a curated collection of Python implementations designed to master the Model I/O component of the LangChain ecosystem. This repository serves as a bridge between raw data and semantic intelligence, showcasing how to leverage industry-leading LLMs and local embedding models.From simple text completions to complex Semantic Search systems, this project provides a modular approach to understanding AI model integration.

πŸš€ Key Features: πŸ€– LLM Mastery: Direct integration with Large Language Models for deterministic text generation. πŸ’¬ Structured Conversations: Advanced chat interfaces using System, Human, and AI message schemas. πŸ” Semantic Intelligence: Generating high-dimensional vector embeddings using OpenAI’s text-embedding-3-large. πŸ“Š Vector Similarity: Implementing Cosine Similarity to perform semantic search across custom datasets (e.g., Cricketer profiles). 🌐 Hybrid Approach: Seamlessly switching between cloud-based (OpenAI) and local (Hugging Face) models. πŸ—‚οΈ Project StructureThe architecture follows a clean, numbered organization for step-by-step learning:

πŸ“¦ langchain-models: ┣ πŸ“‚ 1.LLMs/ # Basic Large Language Model implementations ┣ πŸ“‚ 2.ChatModels/ # Conversational schemas and Chat-based logic ┣ πŸ“‚ 3.EmbeddedModels/ # The core of Semantic Search & Vector Analysis ┃ ┣ πŸ“œ 1_embedding_openai_query.py ┃ ┣ πŸ“œ 2_embedding_openai_docs.py ┃ ┣ πŸ“œ 3_embedding_hf_local.py ┃ β”— πŸ“œ 4_document_similarity.py # Main script for Semantic Search (Cricketers Dataset) ┣ πŸ“œ .env # Configuration & API Keys (Strictly Git-ignored) ┣ πŸ“œ .gitignore # Protection against secret leaks and heavy venv ┣ πŸ“œ requirements.txt # Unified dependency list β”— πŸ“œ README.md # Project Documentation

Created with ❀️ by @aliza-dev

About

Working with Model I/O in LangChain: LLMs, Chat, and Embeddings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages