aryan195a commited on
Commit
eb49d63
·
1 Parent(s): 9451687

Added sample file

Browse files
Files changed (1) hide show
  1. data/docs/sample.txt +35 -0
data/docs/sample.txt CHANGED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LangGraph is a library for building stateful, multi-step workflows using LangChain agents and tools. It introduces a graph-based abstraction where nodes represent steps (e.g., retrieval, generation, decision-making) and edges define transitions between them.
2
+
3
+ Key Concepts:
4
+ - Nodes: Functional units like retrievers, LLMs, or tool wrappers.
5
+ - Edges: Conditional or static paths that control flow between nodes.
6
+ - State: A shared dictionary passed and updated across nodes.
7
+
8
+ LangGraph supports asynchronous execution, retries, and streaming, making it ideal for complex agentic workflows.
9
+
10
+ Retrieval-Augmented Generation (RAG) is a technique that enhances LLM responses by injecting external knowledge. It typically involves:
11
+ 1. Querying a vector store to retrieve relevant documents.
12
+ 2. Passing those documents as context to the LLM.
13
+ 3. Generating a grounded, context-aware response.
14
+
15
+ Benefits of RAG:
16
+ - Reduces hallucinations by anchoring responses in real data.
17
+ - Enables domain-specific QA without fine-tuning.
18
+ - Improves transparency and traceability.
19
+
20
+ LangChain provides the building blocks for RAG:
21
+ - Document loaders and chunkers
22
+ - Embedding models and vector stores (e.g., FAISS, Chroma)
23
+ - Chains and agents for orchestration
24
+
25
+ LangGraph extends LangChain by enabling:
26
+ - Explicit control flow
27
+ - Modular design
28
+ - Debuggable, reproducible workflows
29
+
30
+ Use Cases:
31
+ - Academic QA bots
32
+ - Internal knowledge assistants
33
+ - Modular agent systems with tool use
34
+
35
+ This primer serves as a foundational reference for building explainable, modular GenAI systems using LangGraph and RAG.