How mr-kushwaha/lang_chain_project works
This repository is a collection of LangChain learning demos, not a single deployed application. Its clearest runnable workflows are prompt-to-model generation, composition with chains/runnables, and model-response parsing; separate examples cover chat, embeddings, and structured output. The README describes a broader RAG workflow, but the tree and sampled code do not show a complete document-loading, vector-store, and retrieval application, so those stages are not drawn as implemented components. Some demo modules were not sampled, so their internal wiring is left unspecified.
Main entry points: embedding_doc_similarity.py Similarity demo · prompt_ui.py Prompt UI · typeDict_structOp.py Typed output · Standard_LLm.py Runnable connector
Components 17
Prompts and chat
- Prompt UI
LangChainPrompt/prompt_ui.py - Prompt demos
LangChainPrompt - Chat demos
LangChainPrompt - Chat history
LangChainPrompt/chat_history.txt
Models and embeddings
- Model adapters
ChatModels - Gemini model
ChatModels/chatmodel_Gemini.py - Embedding adapters
EmbeddingModels - Similarity demo
EmbeddingModels/embedding_doc_similarity.py - HF embeddings
EmbeddingModels/embedding_hf.py
Chains and runnables
- Runnable connector
LLM_Runnables/Standard_LLm.py - Dummy LLM chain
LLM_Runnables/dummyLLm.py - Chain demos
LangChain_Chains - Runnable demos
LangChain_Runnables
Structured output
- Output parsers
LangChain_OutputParser - Typed output
Structured_Output/typeDict_structOp.py - Structured output demos
Structured_Output
Other components
- User
Connections 11
- User → Prompt UI: selects inputs
LangChainPrompt/prompt_ui.py - Prompt UI → Gemini model: invokes chain
LangChainPrompt/prompt_ui.py - Prompt UI → Prompt demos: loads template config
LangChainPrompt/prompt_ui.py - Similarity demo → HF embeddings: embeds documents
EmbeddingModels/embedding_doc_similarity.py - Similarity demo → HF embeddings: embeds query
EmbeddingModels/embedding_doc_similarity.py - Similarity demo → Similarity demo: ranks by similarity
EmbeddingModels/embedding_doc_similarity.py - Runnable connector → Runnable connector: invokes in sequence
LLM_Runnables/Standard_LLm.py - Dummy LLM chain → Dummy LLM chain: formats then generates
LLM_Runnables/dummyLLm.py - Chat demos → Chat history: loads prior messages
- Typed output → Gemini model: requests typed output
Structured_Output/typeDict_structOp.py - Typed output → Typed output: invokes structured model
Structured_Output/typeDict_structOp.py