Write the same use case in two different frameworks: LangChain and LlamaIndex
Prepare OpenAI API key
export OPENAI_API_KEY="sk-......"
In some cases, instrumentation keys are required. See README.md under each case
./get_data.sh
to download files to retrieve into data/
For details, see the README.md of each use case respectively
- src/naive_rag - Basic RAG with some non-framework-default settings
- src/chat_rag - RAG with multiple rounds of chat
- src/simple_react - ReAct prompting + tools
- src/leetcode_agent - LeetCode solver via LangChain / LangGraph agent
- src/super_step - Some confusing examples for LangGraph fan-out and fan-in branching
- src/hitl - Some commonn examples of Human-in-the-Loop