├── .gitignore ├── README.md ├── assets ├── llamaindex-simple-react-llm-calls.png └── real-react-prompt-and-result.png ├── get_data.sh ├── leetcode ├── leetcode3 │ ├── DESCRIPTION │ ├── EXAMPLE │ ├── INTERFACE │ └── TEST ├── leetcode3170 │ ├── DESCRIPTION │ ├── EXAMPLE │ ├── INTERFACE │ └── TEST └── leetcode37 │ ├── DESCRIPTION │ ├── EXAMPLE │ ├── INTERFACE │ └── TEST ├── requirements.txt ├── run-qdrant.sh └── src ├── chat_rag ├── README.md ├── constants.py ├── la_etl.py ├── la_rag.py ├── ll_etl.py └── ll_rag.py ├── hitl ├── 1_interrupt.py ├── 2_resume.py ├── 3_travel_to_past.py ├── 4_update.py └── 5_rewrite_past.py ├── langgraph_chatbot.py ├── leetcode_agent ├── README.md ├── __init__.py ├── la_agent.py ├── problem.py ├── prompt.py └── util.py ├── naive_rag ├── README.md ├── constants.py ├── la_etl.py ├── la_rag.py ├── ll_etl.py └── ll_rag.py ├── simple_react ├── README.md ├── la_agent_with_tool_llm.py ├── langgraph_try.py ├── ll_agent.py ├── ll_agent_with_custom_prompt.py ├── ll_agent_with_tool_llm.py ├── ll_react_custom_prompt.py ├── llamaindex_try.py └── story_teller.py └── super_step ├── diamond.py ├── longshort.py ├── longshort_wait.py └── longshort_wait_new_version.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/README.md -------------------------------------------------------------------------------- /assets/llamaindex-simple-react-llm-calls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/assets/llamaindex-simple-react-llm-calls.png -------------------------------------------------------------------------------- /assets/real-react-prompt-and-result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/assets/real-react-prompt-and-result.png -------------------------------------------------------------------------------- /get_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/get_data.sh -------------------------------------------------------------------------------- /leetcode/leetcode3/DESCRIPTION: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3/DESCRIPTION -------------------------------------------------------------------------------- /leetcode/leetcode3/EXAMPLE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3/EXAMPLE -------------------------------------------------------------------------------- /leetcode/leetcode3/INTERFACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3/INTERFACE -------------------------------------------------------------------------------- /leetcode/leetcode3/TEST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3/TEST -------------------------------------------------------------------------------- /leetcode/leetcode3170/DESCRIPTION: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3170/DESCRIPTION -------------------------------------------------------------------------------- /leetcode/leetcode3170/EXAMPLE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3170/EXAMPLE -------------------------------------------------------------------------------- /leetcode/leetcode3170/INTERFACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3170/INTERFACE -------------------------------------------------------------------------------- /leetcode/leetcode3170/TEST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode3170/TEST -------------------------------------------------------------------------------- /leetcode/leetcode37/DESCRIPTION: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode37/DESCRIPTION -------------------------------------------------------------------------------- /leetcode/leetcode37/EXAMPLE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode37/EXAMPLE -------------------------------------------------------------------------------- /leetcode/leetcode37/INTERFACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode37/INTERFACE -------------------------------------------------------------------------------- /leetcode/leetcode37/TEST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/leetcode/leetcode37/TEST -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/requirements.txt -------------------------------------------------------------------------------- /run-qdrant.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/run-qdrant.sh -------------------------------------------------------------------------------- /src/chat_rag/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/chat_rag/README.md -------------------------------------------------------------------------------- /src/chat_rag/constants.py: -------------------------------------------------------------------------------- 1 | PDF_FILENAME = "data/long-term-care-2.pdf" 2 | -------------------------------------------------------------------------------- /src/chat_rag/la_etl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/chat_rag/la_etl.py -------------------------------------------------------------------------------- /src/chat_rag/la_rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/chat_rag/la_rag.py -------------------------------------------------------------------------------- /src/chat_rag/ll_etl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/chat_rag/ll_etl.py -------------------------------------------------------------------------------- /src/chat_rag/ll_rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/chat_rag/ll_rag.py -------------------------------------------------------------------------------- /src/hitl/1_interrupt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/hitl/1_interrupt.py -------------------------------------------------------------------------------- /src/hitl/2_resume.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/hitl/2_resume.py -------------------------------------------------------------------------------- /src/hitl/3_travel_to_past.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/hitl/3_travel_to_past.py -------------------------------------------------------------------------------- /src/hitl/4_update.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/hitl/4_update.py -------------------------------------------------------------------------------- /src/hitl/5_rewrite_past.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/hitl/5_rewrite_past.py -------------------------------------------------------------------------------- /src/langgraph_chatbot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/langgraph_chatbot.py -------------------------------------------------------------------------------- /src/leetcode_agent/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/leetcode_agent/README.md -------------------------------------------------------------------------------- /src/leetcode_agent/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/leetcode_agent/la_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/leetcode_agent/la_agent.py -------------------------------------------------------------------------------- /src/leetcode_agent/problem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/leetcode_agent/problem.py -------------------------------------------------------------------------------- /src/leetcode_agent/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/leetcode_agent/prompt.py -------------------------------------------------------------------------------- /src/leetcode_agent/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/leetcode_agent/util.py -------------------------------------------------------------------------------- /src/naive_rag/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/naive_rag/README.md -------------------------------------------------------------------------------- /src/naive_rag/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/naive_rag/constants.py -------------------------------------------------------------------------------- /src/naive_rag/la_etl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/naive_rag/la_etl.py -------------------------------------------------------------------------------- /src/naive_rag/la_rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/naive_rag/la_rag.py -------------------------------------------------------------------------------- /src/naive_rag/ll_etl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/naive_rag/ll_etl.py -------------------------------------------------------------------------------- /src/naive_rag/ll_rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/naive_rag/ll_rag.py -------------------------------------------------------------------------------- /src/simple_react/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/README.md -------------------------------------------------------------------------------- /src/simple_react/la_agent_with_tool_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/la_agent_with_tool_llm.py -------------------------------------------------------------------------------- /src/simple_react/langgraph_try.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/langgraph_try.py -------------------------------------------------------------------------------- /src/simple_react/ll_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/ll_agent.py -------------------------------------------------------------------------------- /src/simple_react/ll_agent_with_custom_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/ll_agent_with_custom_prompt.py -------------------------------------------------------------------------------- /src/simple_react/ll_agent_with_tool_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/ll_agent_with_tool_llm.py -------------------------------------------------------------------------------- /src/simple_react/ll_react_custom_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/ll_react_custom_prompt.py -------------------------------------------------------------------------------- /src/simple_react/llamaindex_try.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/llamaindex_try.py -------------------------------------------------------------------------------- /src/simple_react/story_teller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/simple_react/story_teller.py -------------------------------------------------------------------------------- /src/super_step/diamond.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/super_step/diamond.py -------------------------------------------------------------------------------- /src/super_step/longshort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/super_step/longshort.py -------------------------------------------------------------------------------- /src/super_step/longshort_wait.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/super_step/longshort_wait.py -------------------------------------------------------------------------------- /src/super_step/longshort_wait_new_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclefomotw/lang-or-llama/HEAD/src/super_step/longshort_wait_new_version.py --------------------------------------------------------------------------------