├── .github └── workflows │ └── tests.yaml ├── .gitignore ├── .ruff.toml ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── docker-compose.yml ├── examples ├── agents.ipynb ├── compare.html ├── compare.ipynb ├── conversation-between-models.ipynb ├── duckduckgo-web-search.ipynb ├── hugging_face_endpoints.ipynb ├── indexes.ipynb ├── memory.ipynb ├── notebook_helpers.py ├── openai_chat.ipynb ├── prompt_templates.ipynb ├── sandbox.ipynb ├── scraping-urls.ipynb ├── search-stack-overflow.ipynb ├── splitting-documents.ipynb └── workflows.ipynb ├── llm_workflow ├── __init__.py ├── agents.py ├── base.py ├── compare.py ├── exceptions.py ├── hugging_face.py ├── indexes.py ├── internal_utilities.py ├── llama_cpp_endpoint.py ├── memory.py ├── message_formatters.py ├── openai.py ├── prompt_templates.py ├── resources.py └── utilities.py ├── pip_freeze.txt ├── pyproject.toml ├── requirements.txt ├── setup.cfg └── tests ├── __init__.py ├── conftest.py ├── test_agents.py ├── test_base.py ├── test_compare.py ├── test_data ├── agents │ └── mock_tools.yml ├── compare │ ├── compare_models__2_models.html │ ├── compare_models__3_models.html │ ├── mock_conversation__mask_email_function.yml │ └── mock_conversation__sum_function.yml ├── data │ └── credit.csv ├── images │ └── northern_lights.png └── prompt_templates │ ├── test_PythonObjectMetadataTemplate__dataframe__credit__name.txt │ ├── test_PythonObjectMetadataTemplate__dataframe__custom_functions.txt │ ├── test_PythonObjectMetadataTemplate__dataframe__dict.txt │ ├── test_PythonObjectMetadataTemplate__dataframe__extract_variables.txt │ ├── test_PythonObjectMetadataTemplate__dataframe_dict__custom_functions.txt │ ├── test_PythonObjectMetadataTemplate__dataframe_dict__extract_variables.txt │ ├── test_PythonObjectMetadataTemplate__dict__extract_variables.txt │ ├── test_extract_metadata__dataframe__credit.txt │ └── test_extract_metadata__dataframe__credit__name.txt ├── test_history.py ├── test_hugging_face.py ├── test_indexes.py ├── test_llama_cpp_server.py ├── test_message_formatters.py ├── test_openai.py ├── test_prompt_templates.py ├── test_records.py ├── test_session.py ├── test_utilities.py └── test_workflows.py /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/.github/workflows/tests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/.gitignore -------------------------------------------------------------------------------- /.ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/.ruff.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /examples/agents.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/agents.ipynb -------------------------------------------------------------------------------- /examples/compare.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/compare.html -------------------------------------------------------------------------------- /examples/compare.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/compare.ipynb -------------------------------------------------------------------------------- /examples/conversation-between-models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/conversation-between-models.ipynb -------------------------------------------------------------------------------- /examples/duckduckgo-web-search.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/duckduckgo-web-search.ipynb -------------------------------------------------------------------------------- /examples/hugging_face_endpoints.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/hugging_face_endpoints.ipynb -------------------------------------------------------------------------------- /examples/indexes.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/indexes.ipynb -------------------------------------------------------------------------------- /examples/memory.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/memory.ipynb -------------------------------------------------------------------------------- /examples/notebook_helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/notebook_helpers.py -------------------------------------------------------------------------------- /examples/openai_chat.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/openai_chat.ipynb -------------------------------------------------------------------------------- /examples/prompt_templates.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/prompt_templates.ipynb -------------------------------------------------------------------------------- /examples/sandbox.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/sandbox.ipynb -------------------------------------------------------------------------------- /examples/scraping-urls.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/scraping-urls.ipynb -------------------------------------------------------------------------------- /examples/search-stack-overflow.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/search-stack-overflow.ipynb -------------------------------------------------------------------------------- /examples/splitting-documents.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/splitting-documents.ipynb -------------------------------------------------------------------------------- /examples/workflows.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/examples/workflows.ipynb -------------------------------------------------------------------------------- /llm_workflow/__init__.py: -------------------------------------------------------------------------------- 1 | """Used to mark a directory as a Python package.""" 2 | -------------------------------------------------------------------------------- /llm_workflow/agents.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/agents.py -------------------------------------------------------------------------------- /llm_workflow/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/base.py -------------------------------------------------------------------------------- /llm_workflow/compare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/compare.py -------------------------------------------------------------------------------- /llm_workflow/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/exceptions.py -------------------------------------------------------------------------------- /llm_workflow/hugging_face.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/hugging_face.py -------------------------------------------------------------------------------- /llm_workflow/indexes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/indexes.py -------------------------------------------------------------------------------- /llm_workflow/internal_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/internal_utilities.py -------------------------------------------------------------------------------- /llm_workflow/llama_cpp_endpoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/llama_cpp_endpoint.py -------------------------------------------------------------------------------- /llm_workflow/memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/memory.py -------------------------------------------------------------------------------- /llm_workflow/message_formatters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/message_formatters.py -------------------------------------------------------------------------------- /llm_workflow/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/openai.py -------------------------------------------------------------------------------- /llm_workflow/prompt_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/prompt_templates.py -------------------------------------------------------------------------------- /llm_workflow/resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/resources.py -------------------------------------------------------------------------------- /llm_workflow/utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/llm_workflow/utilities.py -------------------------------------------------------------------------------- /pip_freeze.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/pip_freeze.txt -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/setup.cfg -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Used to mark a directory as a Python package.""" 2 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_agents.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_agents.py -------------------------------------------------------------------------------- /tests/test_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_base.py -------------------------------------------------------------------------------- /tests/test_compare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_compare.py -------------------------------------------------------------------------------- /tests/test_data/agents/mock_tools.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/agents/mock_tools.yml -------------------------------------------------------------------------------- /tests/test_data/compare/compare_models__2_models.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/compare/compare_models__2_models.html -------------------------------------------------------------------------------- /tests/test_data/compare/compare_models__3_models.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/compare/compare_models__3_models.html -------------------------------------------------------------------------------- /tests/test_data/compare/mock_conversation__mask_email_function.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/compare/mock_conversation__mask_email_function.yml -------------------------------------------------------------------------------- /tests/test_data/compare/mock_conversation__sum_function.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/compare/mock_conversation__sum_function.yml -------------------------------------------------------------------------------- /tests/test_data/data/credit.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/data/credit.csv -------------------------------------------------------------------------------- /tests/test_data/images/northern_lights.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/images/northern_lights.png -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__credit__name.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__credit__name.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__custom_functions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__custom_functions.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__dict.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__dict.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__extract_variables.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe__extract_variables.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe_dict__custom_functions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe_dict__custom_functions.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe_dict__extract_variables.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dataframe_dict__extract_variables.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dict__extract_variables.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_PythonObjectMetadataTemplate__dict__extract_variables.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_extract_metadata__dataframe__credit.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_extract_metadata__dataframe__credit.txt -------------------------------------------------------------------------------- /tests/test_data/prompt_templates/test_extract_metadata__dataframe__credit__name.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_data/prompt_templates/test_extract_metadata__dataframe__credit__name.txt -------------------------------------------------------------------------------- /tests/test_history.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_history.py -------------------------------------------------------------------------------- /tests/test_hugging_face.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_hugging_face.py -------------------------------------------------------------------------------- /tests/test_indexes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_indexes.py -------------------------------------------------------------------------------- /tests/test_llama_cpp_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_llama_cpp_server.py -------------------------------------------------------------------------------- /tests/test_message_formatters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_message_formatters.py -------------------------------------------------------------------------------- /tests/test_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_openai.py -------------------------------------------------------------------------------- /tests/test_prompt_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_prompt_templates.py -------------------------------------------------------------------------------- /tests/test_records.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_records.py -------------------------------------------------------------------------------- /tests/test_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_session.py -------------------------------------------------------------------------------- /tests/test_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_utilities.py -------------------------------------------------------------------------------- /tests/test_workflows.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shane-kercheval/llm-workflow/HEAD/tests/test_workflows.py --------------------------------------------------------------------------------