├── .gitignore ├── LICENSE ├── README.md ├── README_zh.md ├── requirements.txt └── src ├── 00.assistant.py ├── 00.assistant_2.py ├── 00.chat.py ├── 00.chatbot.py ├── 00.streaming_2.py ├── 00.tool_InjectedToolArg_2.py ├── 00.tool_InjectedToolArg_3.py ├── 00.tool_InjectedToolArg_4.py ├── 01.translation.py ├── 02.vector_store_pdf.py ├── 03.create_db_csv.py ├── 04.classification.py ├── 05.extraction_1.py ├── 06.extraction_2.py ├── 07.chatbot_1.py ├── 08.chatbot_2.py ├── 09.chatbot_3.py ├── 10.tool_1.py ├── 11.tool_ad_hoc.py ├── 12.tool_human_in_the_loop.py ├── 13.tool_InjectedToolArg_1.py ├── 14.tool_in_agent.py ├── 15.agent_executor.py ├── 16.agent_executor.py ├── 17.tool_in_RAG.py ├── 18.rag_graph.py ├── 19.rag_graph_2.py ├── 20.rag_graph_3.py ├── 21.rag_graph_with_query_analysis.py ├── 22.qa_sql.py ├── 23.qa_sql_agent.py ├── 23.qa_sql_agent_cn.py ├── 24.qa_sql_agent_2.py ├── 25.qa_sql_graph.py ├── 26.qa_sql_graph_2.py ├── 27.streaming.py ├── 28.qa_graph.py ├── 29.qa_graph_advanced.py ├── 30.summarize.py ├── 31.summarize_map_reduce.py ├── 32.chat.html ├── 32.websocket.py ├── 33.SSE_client.html ├── 33.SSE_server.py ├── 34.faiss.py ├── 38_llmclient.py ├── 39.FastMCP ├── fastmcp_client.py └── fastmcp_server.py ├── assert ├── 123.graphml ├── Chinook.db ├── Chinook_Sqlite.sql ├── LLM Powered Autonomous Agents _ Lil'Log.html ├── LLM Powered Autonomous Agents _ Lil'Log_files │ ├── CoH.png │ ├── agent-overview.png │ ├── algorithm-distillation-results.png │ ├── algorithm-distillation.png │ ├── api-bank-process.png │ ├── generative-agents.png │ ├── highlight.min.2eadbb982468c11a433a3e291f01326f2ba43f065e256bf792dbd79640a92316.js.下载 │ ├── hugging-gpt.png │ ├── js │ ├── memory.png │ ├── mips.png │ ├── react.png │ ├── reflexion-exp.png │ ├── reflexion.png │ ├── sea-otter.png │ └── tex-mml-chtml.js.下载 ├── animals.csv ├── animals_all-minilm-33m │ ├── 02b95cf8-ada8-4129-9d33-297c0bd3860e │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── animals_llama3.1 │ ├── c0bfe162-fc8e-4749-9675-268e4491b1db │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── animals_milkey │ └── m3e │ │ ├── 84ad69fd-743e-4966-a092-feaeb3ccb3e2 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ │ └── chroma.sqlite3 ├── animals_mxbai-embed-large │ ├── 74493a2e-f195-413c-8d82-237020813700 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── animals_nomic-embed-text │ ├── 3136354c-7083-4ed7-a434-b15215d7390b │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── animals_qwen2.5 │ ├── 129f6664-0acf-4322-81b0-8561abb32505 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── animals_shaw │ └── dmeta-embedding-zh │ │ ├── 7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ │ └── chroma.sqlite3 ├── db_artists_albums │ ├── c6e6a8fa-e3e4-4d20-9de1-107800b02132 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── db_law │ ├── 4c898430-74c7-47dc-a6a0-f414c514c990 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ └── chroma.sqlite3 ├── es_shaw │ └── dmeta-embedding-zh │ │ ├── 13a83a34-0f64-44d0-bf44-37007d68f247 │ │ ├── data_level0.bin │ │ ├── header.bin │ │ ├── length.bin │ │ └── link_lists.bin │ │ └── chroma.sqlite3 ├── law.csv ├── movies_small.csv ├── nke-10k-2023.pdf └── rag_shaw │ └── dmeta-embedding-zh │ ├── 427c1a6a-4f48-4648-adc8-9784f8769401 │ ├── data_level0.bin │ ├── header.bin │ ├── length.bin │ └── link_lists.bin │ └── chroma.sqlite3 ├── common ├── LimitedChatMessageHistory.py ├── MyJsonOutputParser.py └── MyVectorDB.py ├── p05.nextworkx.py ├── utils.py └── vector_store.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/README.md -------------------------------------------------------------------------------- /README_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/README_zh.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/00.assistant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.assistant.py -------------------------------------------------------------------------------- /src/00.assistant_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.assistant_2.py -------------------------------------------------------------------------------- /src/00.chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.chat.py -------------------------------------------------------------------------------- /src/00.chatbot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.chatbot.py -------------------------------------------------------------------------------- /src/00.streaming_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.streaming_2.py -------------------------------------------------------------------------------- /src/00.tool_InjectedToolArg_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.tool_InjectedToolArg_2.py -------------------------------------------------------------------------------- /src/00.tool_InjectedToolArg_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.tool_InjectedToolArg_3.py -------------------------------------------------------------------------------- /src/00.tool_InjectedToolArg_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/00.tool_InjectedToolArg_4.py -------------------------------------------------------------------------------- /src/01.translation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/01.translation.py -------------------------------------------------------------------------------- /src/02.vector_store_pdf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/02.vector_store_pdf.py -------------------------------------------------------------------------------- /src/03.create_db_csv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/03.create_db_csv.py -------------------------------------------------------------------------------- /src/04.classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/04.classification.py -------------------------------------------------------------------------------- /src/05.extraction_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/05.extraction_1.py -------------------------------------------------------------------------------- /src/06.extraction_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/06.extraction_2.py -------------------------------------------------------------------------------- /src/07.chatbot_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/07.chatbot_1.py -------------------------------------------------------------------------------- /src/08.chatbot_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/08.chatbot_2.py -------------------------------------------------------------------------------- /src/09.chatbot_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/09.chatbot_3.py -------------------------------------------------------------------------------- /src/10.tool_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/10.tool_1.py -------------------------------------------------------------------------------- /src/11.tool_ad_hoc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/11.tool_ad_hoc.py -------------------------------------------------------------------------------- /src/12.tool_human_in_the_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/12.tool_human_in_the_loop.py -------------------------------------------------------------------------------- /src/13.tool_InjectedToolArg_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/13.tool_InjectedToolArg_1.py -------------------------------------------------------------------------------- /src/14.tool_in_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/14.tool_in_agent.py -------------------------------------------------------------------------------- /src/15.agent_executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/15.agent_executor.py -------------------------------------------------------------------------------- /src/16.agent_executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/16.agent_executor.py -------------------------------------------------------------------------------- /src/17.tool_in_RAG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/17.tool_in_RAG.py -------------------------------------------------------------------------------- /src/18.rag_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/18.rag_graph.py -------------------------------------------------------------------------------- /src/19.rag_graph_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/19.rag_graph_2.py -------------------------------------------------------------------------------- /src/20.rag_graph_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/20.rag_graph_3.py -------------------------------------------------------------------------------- /src/21.rag_graph_with_query_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/21.rag_graph_with_query_analysis.py -------------------------------------------------------------------------------- /src/22.qa_sql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/22.qa_sql.py -------------------------------------------------------------------------------- /src/23.qa_sql_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/23.qa_sql_agent.py -------------------------------------------------------------------------------- /src/23.qa_sql_agent_cn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/23.qa_sql_agent_cn.py -------------------------------------------------------------------------------- /src/24.qa_sql_agent_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/24.qa_sql_agent_2.py -------------------------------------------------------------------------------- /src/25.qa_sql_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/25.qa_sql_graph.py -------------------------------------------------------------------------------- /src/26.qa_sql_graph_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/26.qa_sql_graph_2.py -------------------------------------------------------------------------------- /src/27.streaming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/27.streaming.py -------------------------------------------------------------------------------- /src/28.qa_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/28.qa_graph.py -------------------------------------------------------------------------------- /src/29.qa_graph_advanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/29.qa_graph_advanced.py -------------------------------------------------------------------------------- /src/30.summarize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/30.summarize.py -------------------------------------------------------------------------------- /src/31.summarize_map_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/31.summarize_map_reduce.py -------------------------------------------------------------------------------- /src/32.chat.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/32.chat.html -------------------------------------------------------------------------------- /src/32.websocket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/32.websocket.py -------------------------------------------------------------------------------- /src/33.SSE_client.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/33.SSE_client.html -------------------------------------------------------------------------------- /src/33.SSE_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/33.SSE_server.py -------------------------------------------------------------------------------- /src/34.faiss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/34.faiss.py -------------------------------------------------------------------------------- /src/38_llmclient.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/38_llmclient.py -------------------------------------------------------------------------------- /src/39.FastMCP/fastmcp_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/39.FastMCP/fastmcp_client.py -------------------------------------------------------------------------------- /src/39.FastMCP/fastmcp_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/39.FastMCP/fastmcp_server.py -------------------------------------------------------------------------------- /src/assert/123.graphml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/123.graphml -------------------------------------------------------------------------------- /src/assert/Chinook.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/Chinook.db -------------------------------------------------------------------------------- /src/assert/Chinook_Sqlite.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/Chinook_Sqlite.sql -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log.html -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/CoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/CoH.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/agent-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/agent-overview.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/algorithm-distillation-results.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/algorithm-distillation-results.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/algorithm-distillation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/algorithm-distillation.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/api-bank-process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/api-bank-process.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/generative-agents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/generative-agents.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/highlight.min.2eadbb982468c11a433a3e291f01326f2ba43f065e256bf792dbd79640a92316.js.下载: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/highlight.min.2eadbb982468c11a433a3e291f01326f2ba43f065e256bf792dbd79640a92316.js.下载 -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/hugging-gpt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/hugging-gpt.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/js -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/memory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/memory.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/mips.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/mips.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/react.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/react.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/reflexion-exp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/reflexion-exp.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/reflexion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/reflexion.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/sea-otter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/sea-otter.png -------------------------------------------------------------------------------- /src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/tex-mml-chtml.js.下载: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/LLM Powered Autonomous Agents _ Lil'Log_files/tex-mml-chtml.js.下载 -------------------------------------------------------------------------------- /src/assert/animals.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals.csv -------------------------------------------------------------------------------- /src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/header.bin -------------------------------------------------------------------------------- /src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/length.bin -------------------------------------------------------------------------------- /src/assert/animals_all-minilm-33m/02b95cf8-ada8-4129-9d33-297c0bd3860e/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_all-minilm-33m/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_all-minilm-33m/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/header.bin -------------------------------------------------------------------------------- /src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/length.bin -------------------------------------------------------------------------------- /src/assert/animals_llama3.1/c0bfe162-fc8e-4749-9675-268e4491b1db/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_llama3.1/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_llama3.1/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/header.bin -------------------------------------------------------------------------------- /src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/length.bin -------------------------------------------------------------------------------- /src/assert/animals_milkey/m3e/84ad69fd-743e-4966-a092-feaeb3ccb3e2/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_milkey/m3e/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_milkey/m3e/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/header.bin -------------------------------------------------------------------------------- /src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/length.bin -------------------------------------------------------------------------------- /src/assert/animals_mxbai-embed-large/74493a2e-f195-413c-8d82-237020813700/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_mxbai-embed-large/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_mxbai-embed-large/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/header.bin -------------------------------------------------------------------------------- /src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/length.bin -------------------------------------------------------------------------------- /src/assert/animals_nomic-embed-text/3136354c-7083-4ed7-a434-b15215d7390b/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_nomic-embed-text/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_nomic-embed-text/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/header.bin -------------------------------------------------------------------------------- /src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/length.bin -------------------------------------------------------------------------------- /src/assert/animals_qwen2.5/129f6664-0acf-4322-81b0-8561abb32505/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_qwen2.5/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_qwen2.5/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/data_level0.bin -------------------------------------------------------------------------------- /src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/header.bin -------------------------------------------------------------------------------- /src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/length.bin -------------------------------------------------------------------------------- /src/assert/animals_shaw/dmeta-embedding-zh/7d285bf7-8f9a-4f7d-a328-a9a7757d7bd8/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/animals_shaw/dmeta-embedding-zh/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/animals_shaw/dmeta-embedding-zh/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/data_level0.bin -------------------------------------------------------------------------------- /src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/header.bin -------------------------------------------------------------------------------- /src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/length.bin -------------------------------------------------------------------------------- /src/assert/db_artists_albums/c6e6a8fa-e3e4-4d20-9de1-107800b02132/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/db_artists_albums/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_artists_albums/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/data_level0.bin -------------------------------------------------------------------------------- /src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/header.bin -------------------------------------------------------------------------------- /src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/length.bin -------------------------------------------------------------------------------- /src/assert/db_law/4c898430-74c7-47dc-a6a0-f414c514c990/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/db_law/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/db_law/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/data_level0.bin -------------------------------------------------------------------------------- /src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/header.bin -------------------------------------------------------------------------------- /src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/length.bin -------------------------------------------------------------------------------- /src/assert/es_shaw/dmeta-embedding-zh/13a83a34-0f64-44d0-bf44-37007d68f247/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/es_shaw/dmeta-embedding-zh/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/es_shaw/dmeta-embedding-zh/chroma.sqlite3 -------------------------------------------------------------------------------- /src/assert/law.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/law.csv -------------------------------------------------------------------------------- /src/assert/movies_small.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/movies_small.csv -------------------------------------------------------------------------------- /src/assert/nke-10k-2023.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/nke-10k-2023.pdf -------------------------------------------------------------------------------- /src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/data_level0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/data_level0.bin -------------------------------------------------------------------------------- /src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/header.bin -------------------------------------------------------------------------------- /src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/length.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/length.bin -------------------------------------------------------------------------------- /src/assert/rag_shaw/dmeta-embedding-zh/427c1a6a-4f48-4648-adc8-9784f8769401/link_lists.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assert/rag_shaw/dmeta-embedding-zh/chroma.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/assert/rag_shaw/dmeta-embedding-zh/chroma.sqlite3 -------------------------------------------------------------------------------- /src/common/LimitedChatMessageHistory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/common/LimitedChatMessageHistory.py -------------------------------------------------------------------------------- /src/common/MyJsonOutputParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/common/MyJsonOutputParser.py -------------------------------------------------------------------------------- /src/common/MyVectorDB.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/common/MyVectorDB.py -------------------------------------------------------------------------------- /src/p05.nextworkx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/p05.nextworkx.py -------------------------------------------------------------------------------- /src/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/utils.py -------------------------------------------------------------------------------- /src/vector_store.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liupras/Practical-local-LLM-programming/HEAD/src/vector_store.py --------------------------------------------------------------------------------