diff --git a/recipes/3p_integration/README.md b/recipes/3p_integration/README.md index 77641d6ee5e17943ab1ac8a5a381d493c2dba6fc..e8dd1a97b06dea2fdc2ff1d9c4f04d17bce18b82 100644 --- a/recipes/3p_integration/README.md +++ b/recipes/3p_integration/README.md @@ -1,2 +1,2 @@ -## [Running Llama 3 On-Prem with vLLM and TGI](llama-on-prem.md) +## [Running Llama 3 On-Prem with vLLM and TGI](llama_on_prem.md) This tutorial shows how to use Llama 3 with [vLLM](https://github.com/vllm-project/vllm) and Hugging Face [TGI](https://github.com/huggingface/text-generation-inference) to build Llama 3 on-prem apps. diff --git a/recipes/llama_api_providers/examples_with_aws/getting_started_llama_3_on_amazon_bedrock.ipynb b/recipes/3p_integration/aws/getting_started_llama_3_on_amazon_bedrock.ipynb similarity index 100% rename from recipes/llama_api_providers/examples_with_aws/getting_started_llama_3_on_amazon_bedrock.ipynb rename to recipes/3p_integration/aws/getting_started_llama_3_on_amazon_bedrock.ipynb diff --git a/recipes/llama_api_providers/examples_with_aws/Prompt_Engineering_with_Llama_2_On_Amazon_Bedrock.ipynb b/recipes/3p_integration/aws/prompt_engineering_with_llama_2_on_amazon_bedrock.ipynb similarity index 100% rename from recipes/llama_api_providers/examples_with_aws/Prompt_Engineering_with_Llama_2_On_Amazon_Bedrock.ipynb rename to recipes/3p_integration/aws/prompt_engineering_with_llama_2_on_amazon_bedrock.ipynb diff --git a/recipes/llama_api_providers/examples_with_aws/ReAct_Llama_3_Bedrock-WK.ipynb b/recipes/3p_integration/aws/react_llama_3_bedrock_wk.ipynb similarity index 100% rename from recipes/llama_api_providers/examples_with_aws/ReAct_Llama_3_Bedrock-WK.ipynb rename to recipes/3p_integration/aws/react_llama_3_bedrock_wk.ipynb diff --git a/recipes/llama_api_providers/Azure_API_example/azure_api_example.ipynb b/recipes/3p_integration/azure/azure_api_example.ipynb similarity index 100% rename from recipes/llama_api_providers/Azure_API_example/azure_api_example.ipynb rename to recipes/3p_integration/azure/azure_api_example.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/Function-Calling-101-Ecommerce.ipynb b/recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/Function-Calling-101-Ecommerce.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/Function-Calling-101-Ecommerce.ipynb rename to recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/Function-Calling-101-Ecommerce.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/customers.csv b/recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/customers.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/customers.csv rename to recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/customers.csv diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/orders.csv b/recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/orders.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/orders.csv rename to recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/orders.csv diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/products.csv b/recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/products.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/function-calling-101-ecommerce/products.csv rename to recipes/3p_integration/groq/groq-api-cookbook/function-calling-101-ecommerce/products.csv diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/employees.csv b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/employees.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/employees.csv rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/employees.csv diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/purchases.csv b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/purchases.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/purchases.csv rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/data/purchases.csv diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/json-mode-function-calling-for-sql.ipynb b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/json-mode-function-calling-for-sql.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/json-mode-function-calling-for-sql.ipynb rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/json-mode-function-calling-for-sql.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/employees-without-purchases.yaml b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/employees-without-purchases.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/employees-without-purchases.yaml rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/employees-without-purchases.yaml diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-expensive-purchase.yaml b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-expensive-purchase.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-expensive-purchase.yaml rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-expensive-purchase.yaml diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-recent-purchases.yaml b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-recent-purchases.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-recent-purchases.yaml rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/most-recent-purchases.yaml diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/number-of-teslas.yaml b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/number-of-teslas.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/number-of-teslas.yaml rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-function-calling-for-sql/verified-queries/number-of-teslas.yaml diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/SDOH-Json-mode.ipynb b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/SDOH-Json-mode.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/SDOH-Json-mode.ipynb rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/SDOH-Json-mode.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00456321.txt b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00456321.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00456321.txt rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00456321.txt diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00567289.txt b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00567289.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00567289.txt rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00567289.txt diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00678934.txt b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00678934.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00678934.txt rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00678934.txt diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00785642.txt b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00785642.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00785642.txt rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00785642.txt diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00893247.txt b/recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00893247.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00893247.txt rename to recipes/3p_integration/groq/groq-api-cookbook/json-mode-social-determinants-of-health/clinical_notes/00893247.txt diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/llama3-stock-market-function-calling/llama3-stock-market-function-calling.ipynb b/recipes/3p_integration/groq/groq-api-cookbook/llama3-stock-market-function-calling/llama3-stock-market-function-calling.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/llama3-stock-market-function-calling/llama3-stock-market-function-calling.ipynb rename to recipes/3p_integration/groq/groq-api-cookbook/llama3-stock-market-function-calling/llama3-stock-market-function-calling.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/parallel-tool-use/parallel-tool-use.ipynb b/recipes/3p_integration/groq/groq-api-cookbook/parallel-tool-use/parallel-tool-use.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/parallel-tool-use/parallel-tool-use.ipynb rename to recipes/3p_integration/groq/groq-api-cookbook/parallel-tool-use/parallel-tool-use.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/parallel-tool-use/requirements.txt b/recipes/3p_integration/groq/groq-api-cookbook/parallel-tool-use/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/parallel-tool-use/requirements.txt rename to recipes/3p_integration/groq/groq-api-cookbook/parallel-tool-use/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/rag-langchain-presidential-speeches/presidential_speeches.csv b/recipes/3p_integration/groq/groq-api-cookbook/rag-langchain-presidential-speeches/presidential_speeches.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/rag-langchain-presidential-speeches/presidential_speeches.csv rename to recipes/3p_integration/groq/groq-api-cookbook/rag-langchain-presidential-speeches/presidential_speeches.csv diff --git a/recipes/llama_api_providers/Groq/groq-api-cookbook/rag-langchain-presidential-speeches/rag-langchain-presidential-speeches.ipynb b/recipes/3p_integration/groq/groq-api-cookbook/rag-langchain-presidential-speeches/rag-langchain-presidential-speeches.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/groq-api-cookbook/rag-langchain-presidential-speeches/rag-langchain-presidential-speeches.ipynb rename to recipes/3p_integration/groq/groq-api-cookbook/rag-langchain-presidential-speeches/rag-langchain-presidential-speeches.ipynb diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/conversational-chatbot-langchain/README.md b/recipes/3p_integration/groq/groq-example-templates/conversational-chatbot-langchain/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/conversational-chatbot-langchain/README.md rename to recipes/3p_integration/groq/groq-example-templates/conversational-chatbot-langchain/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/conversational-chatbot-langchain/main.py b/recipes/3p_integration/groq/groq-example-templates/conversational-chatbot-langchain/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/conversational-chatbot-langchain/main.py rename to recipes/3p_integration/groq/groq-example-templates/conversational-chatbot-langchain/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/conversational-chatbot-langchain/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/conversational-chatbot-langchain/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/conversational-chatbot-langchain/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/conversational-chatbot-langchain/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/crewai-agents/README.md b/recipes/3p_integration/groq/groq-example-templates/crewai-agents/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/crewai-agents/README.md rename to recipes/3p_integration/groq/groq-example-templates/crewai-agents/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/crewai-agents/main.py b/recipes/3p_integration/groq/groq-example-templates/crewai-agents/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/crewai-agents/main.py rename to recipes/3p_integration/groq/groq-example-templates/crewai-agents/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/crewai-agents/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/crewai-agents/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/crewai-agents/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/crewai-agents/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/groq-quickstart-conversational-chatbot/README.md b/recipes/3p_integration/groq/groq-example-templates/groq-quickstart-conversational-chatbot/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/groq-quickstart-conversational-chatbot/README.md rename to recipes/3p_integration/groq/groq-example-templates/groq-quickstart-conversational-chatbot/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/groq-quickstart-conversational-chatbot/main.py b/recipes/3p_integration/groq/groq-example-templates/groq-quickstart-conversational-chatbot/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/groq-quickstart-conversational-chatbot/main.py rename to recipes/3p_integration/groq/groq-example-templates/groq-quickstart-conversational-chatbot/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/groq-quickstart-conversational-chatbot/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/groq-quickstart-conversational-chatbot/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/groq-quickstart-conversational-chatbot/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/groq-quickstart-conversational-chatbot/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/README.md b/recipes/3p_integration/groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/README.md rename to recipes/3p_integration/groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/main.py b/recipes/3p_integration/groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/main.py rename to recipes/3p_integration/groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/groqing-the-stock-market-function-calling-llama3/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/README.md b/recipes/3p_integration/groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/README.md rename to recipes/3p_integration/groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/main.py b/recipes/3p_integration/groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/main.py rename to recipes/3p_integration/groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/llamachat-conversational-chatbot-with-llamaIndex/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/presidential-speeches-rag-with-pinecone/README.md b/recipes/3p_integration/groq/groq-example-templates/presidential-speeches-rag-with-pinecone/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/presidential-speeches-rag-with-pinecone/README.md rename to recipes/3p_integration/groq/groq-example-templates/presidential-speeches-rag-with-pinecone/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/presidential-speeches-rag-with-pinecone/main.py b/recipes/3p_integration/groq/groq-example-templates/presidential-speeches-rag-with-pinecone/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/presidential-speeches-rag-with-pinecone/main.py rename to recipes/3p_integration/groq/groq-example-templates/presidential-speeches-rag-with-pinecone/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/presidential-speeches-rag-with-pinecone/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/presidential-speeches-rag-with-pinecone/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/presidential-speeches-rag-with-pinecone/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/presidential-speeches-rag-with-pinecone/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/README.md b/recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/README.md rename to recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/data/employees.csv b/recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/data/employees.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/data/employees.csv rename to recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/data/employees.csv diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/data/purchases.csv b/recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/data/purchases.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/data/purchases.csv rename to recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/data/purchases.csv diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/main.py b/recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/main.py rename to recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/prompts/base_prompt.txt b/recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/prompts/base_prompt.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/prompts/base_prompt.txt rename to recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/prompts/base_prompt.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/text-to-sql-json-mode/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/text-to-sql-json-mode/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/README.md b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/README.md similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/README.md rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/README.md diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/data/employees.csv b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/data/employees.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/data/employees.csv rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/data/employees.csv diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/data/purchases.csv b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/data/purchases.csv similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/data/purchases.csv rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/data/purchases.csv diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/main.py b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/main.py similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/main.py rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/main.py diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/requirements.txt b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/requirements.txt similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/requirements.txt rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/requirements.txt diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/employees-without-purchases.yaml b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/employees-without-purchases.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/employees-without-purchases.yaml rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/employees-without-purchases.yaml diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-expensive-purchase.yaml b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-expensive-purchase.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-expensive-purchase.yaml rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-expensive-purchase.yaml diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-recent-purchases.yaml b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-recent-purchases.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-recent-purchases.yaml rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/most-recent-purchases.yaml diff --git a/recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/number-of-teslas.yaml b/recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/number-of-teslas.yaml similarity index 100% rename from recipes/llama_api_providers/Groq/groq-example-templates/verified-sql-function-calling/verified-queries/number-of-teslas.yaml rename to recipes/3p_integration/groq/groq-example-templates/verified-sql-function-calling/verified-queries/number-of-teslas.yaml diff --git a/recipes/llama_api_providers/Groq/llama3_cookbook_groq.ipynb b/recipes/3p_integration/groq/llama3_cookbook_groq.ipynb similarity index 100% rename from recipes/llama_api_providers/Groq/llama3_cookbook_groq.ipynb rename to recipes/3p_integration/groq/llama3_cookbook_groq.ipynb diff --git a/recipes/3p_integration/lamini/text2sql_memory_tuning/README.md b/recipes/3p_integration/lamini/text2sql_memory_tuning/README.md index 0752fa71110632a52d5b344f8d2d677824ae8e00..8d9d0f528a8d00063a4cd58793bc6c83e4359e48 100644 --- a/recipes/3p_integration/lamini/text2sql_memory_tuning/README.md +++ b/recipes/3p_integration/lamini/text2sql_memory_tuning/README.md @@ -1,10 +1,10 @@ # Tune Llama 3 for text-to-SQL and improve accuracy from 30% to 95% -This repo and notebook `meta-lamini.ipynb` demonstrate how to tune Llama 3 to generate valid SQL queries and improve accuracy from 30% to 95%. +This repo and notebook `meta_lamini.ipynb` demonstrate how to tune Llama 3 to generate valid SQL queries and improve accuracy from 30% to 95%. -In this notebook we'll be using Lamini, and more specifically, Lamini Memory Tuning. +In this notebook we'll be using Lamini, and more specifically, Lamini Memory Tuning. -Lamini is an integrated platform for LLM inference and tuning for the enterprise. Lamini Memory Tuning is a new tool you can use to embed facts into LLMs that improves factual accuracy and reduces hallucinations. Inspired by information retrieval, this method has set a new standard of accuracy for LLMs with less developer effort. +Lamini is an integrated platform for LLM inference and tuning for the enterprise. Lamini Memory Tuning is a new tool you can use to embed facts into LLMs that improves factual accuracy and reduces hallucinations. Inspired by information retrieval, this method has set a new standard of accuracy for LLMs with less developer effort. Learn more about Lamini Memory Tuning: https://www.lamini.ai/blog/lamini-memory-tuning diff --git a/recipes/3p_integration/lamini/text2sql_memory_tuning/meta-lamini.ipynb b/recipes/3p_integration/lamini/text2sql_memory_tuning/meta_lamini.ipynb similarity index 100% rename from recipes/3p_integration/lamini/text2sql_memory_tuning/meta-lamini.ipynb rename to recipes/3p_integration/lamini/text2sql_memory_tuning/meta_lamini.ipynb diff --git a/recipes/3p_integration/llama-on-prem.md b/recipes/3p_integration/llama_on_prem.md similarity index 100% rename from recipes/3p_integration/llama-on-prem.md rename to recipes/3p_integration/llama_on_prem.md diff --git a/recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/RAG_Chatbot_Example.ipynb b/recipes/3p_integration/octoai/RAG_chatbot_example/RAG_chatbot_example.ipynb similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/RAG_Chatbot_Example.ipynb rename to recipes/3p_integration/octoai/RAG_chatbot_example/RAG_chatbot_example.ipynb diff --git a/recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/data/Llama Getting Started Guide.pdf b/recipes/3p_integration/octoai/RAG_chatbot_example/data/Llama Getting Started Guide.pdf similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/data/Llama Getting Started Guide.pdf rename to recipes/3p_integration/octoai/RAG_chatbot_example/data/Llama Getting Started Guide.pdf diff --git a/recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/requirements.txt b/recipes/3p_integration/octoai/RAG_chatbot_example/requirements.txt similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/requirements.txt rename to recipes/3p_integration/octoai/RAG_chatbot_example/requirements.txt diff --git a/recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/vectorstore/db_faiss/index.faiss b/recipes/3p_integration/octoai/RAG_chatbot_example/vectorstore/db_faiss/index.faiss similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/vectorstore/db_faiss/index.faiss rename to recipes/3p_integration/octoai/RAG_chatbot_example/vectorstore/db_faiss/index.faiss diff --git a/recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/vectorstore/db_faiss/index.pkl b/recipes/3p_integration/octoai/RAG_chatbot_example/vectorstore/db_faiss/index.pkl similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/vectorstore/db_faiss/index.pkl rename to recipes/3p_integration/octoai/RAG_chatbot_example/vectorstore/db_faiss/index.pkl diff --git a/recipes/llama_api_providers/OctoAI_API_examples/Getting_to_know_Llama.ipynb b/recipes/3p_integration/octoai/getting_to_know_llama.ipynb similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/Getting_to_know_Llama.ipynb rename to recipes/3p_integration/octoai/getting_to_know_llama.ipynb diff --git a/recipes/llama_api_providers/OctoAI_API_examples/HelloLlamaCloud.ipynb b/recipes/3p_integration/octoai/hello_llama_cloud.ipynb similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/HelloLlamaCloud.ipynb rename to recipes/3p_integration/octoai/hello_llama_cloud.ipynb diff --git a/recipes/llama_api_providers/OctoAI_API_examples/LiveData.ipynb b/recipes/3p_integration/octoai/live_data.ipynb similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/LiveData.ipynb rename to recipes/3p_integration/octoai/live_data.ipynb diff --git a/recipes/llama_api_providers/OctoAI_API_examples/Llama2_Gradio.ipynb b/recipes/3p_integration/octoai/llama2_gradio.ipynb similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/Llama2_Gradio.ipynb rename to recipes/3p_integration/octoai/llama2_gradio.ipynb diff --git a/recipes/llama_api_providers/OctoAI_API_examples/VideoSummary.ipynb b/recipes/3p_integration/octoai/video_summary.ipynb similarity index 100% rename from recipes/llama_api_providers/OctoAI_API_examples/VideoSummary.ipynb rename to recipes/3p_integration/octoai/video_summary.ipynb diff --git a/recipes/3p_integration/hf_text_generation_inference/README.md b/recipes/3p_integration/tgi/README.md similarity index 92% rename from recipes/3p_integration/hf_text_generation_inference/README.md rename to recipes/3p_integration/tgi/README.md index 0f794214cde030904636152f1b1a7fc13f56b103..d167bd204b7277098a1bd1fbafb2931de5d82e58 100644 --- a/recipes/3p_integration/hf_text_generation_inference/README.md +++ b/recipes/3p_integration/tgi/README.md @@ -9,7 +9,7 @@ In case the model was fine tuned with LoRA method we need to merge the weights o The script takes the base model, the peft weight folder as well as an output as arguments: ``` -python -m llama_recipes.inference.hf_text_generation_inference.merge_lora_weights --base_model llama-7B --peft_model ft_output --output_dir data/merged_model_output +python -m llama_recipes.recipes.3p_integration.tgi.merge_lora_weights --base_model llama-7B --peft_model ft_output --output_dir data/merged_model_output ``` ## Step 1: Serving the model diff --git a/recipes/3p_integration/hf_text_generation_inference/merge_lora_weights.py b/recipes/3p_integration/tgi/merge_lora_weights.py similarity index 100% rename from recipes/3p_integration/hf_text_generation_inference/merge_lora_weights.py rename to recipes/3p_integration/tgi/merge_lora_weights.py diff --git a/recipes/llama_api_providers/Using_Externally_Hosted_LLMs.ipynb b/recipes/3p_integration/using_externally_hosted_llms.ipynb similarity index 100% rename from recipes/llama_api_providers/Using_Externally_Hosted_LLMs.ipynb rename to recipes/3p_integration/using_externally_hosted_llms.ipynb diff --git a/recipes/quickstart/inference/mobile_inference/android_inference/README.md b/recipes/quickstart/inference/mobile_inference/android_inference/README.md index 34635fcb9e613682c9ebe6f758cedd28910d7319..e310c8aaa99bd7bd153d99ea2a2ca5a9a250c87b 100644 --- a/recipes/quickstart/inference/mobile_inference/android_inference/README.md +++ b/recipes/quickstart/inference/mobile_inference/android_inference/README.md @@ -9,7 +9,7 @@ Machine Learning Compilation for Large Language Models (MLC LLM) is a high-perfo You can read more about MLC-LLM at the following [link](https://github.com/mlc-ai/mlc-llm). -MLC-LLM is also what powers the Llama3 inference APIs provided by [OctoAI](https://octo.ai/). You can use OctoAI for your Llama3 cloud-based inference needs by trying out the examples under the [following path](../../../../llama_api_providers/OctoAI_API_examples/). +MLC-LLM is also what powers the Llama3 inference APIs provided by [OctoAI](https://octo.ai/). You can use OctoAI for your Llama3 cloud-based inference needs by trying out the examples under the [following path](../../../../3p_integration/octoai/). This tutorial was tested with the following setup: * MacBook Pro 16 inch from 2021 with Apple M1 Max and 32GB of RAM running Sonoma 14.3.1 diff --git a/recipes/use_cases/README.md b/recipes/use_cases/README.md index 58eb1be67029618a5d8884bdac6fe77e6555e428..49b55d7341721201942f910b43010a8d01857ecf 100644 --- a/recipes/use_cases/README.md +++ b/recipes/use_cases/README.md @@ -1,10 +1,10 @@ -## [VideoSummary](VideoSummary.ipynb): Ask Llama 3 to Summarize a Long YouTube Video (using Replicate or [OctoAI](../llama_api_providers/OctoAI_API_examples/VideoSummary.ipynb)) +## [VideoSummary](VideoSummary.ipynb): Ask Llama 3 to Summarize a Long YouTube Video (using Replicate or [OctoAI](../3p_integration/octoai/VideoSummary.ipynb)) This demo app uses Llama 3 to return a text summary of a YouTube video. It shows how to retrieve the caption of a YouTube video and how to ask Llama to summarize the content in different ways, from the simplest naive way that works for short text to more advanced methods of using LangChain's map_reduce and refine to overcome the 8K context length limit of Llama 3. ## [NBA2023-24](./text2sql/StructuredLlama.ipynb): Ask Llama 3 about Structured Data This demo app shows how to use LangChain and Llama 3 to let users ask questions about **structured** data stored in a SQL DB. As the 2023-24 NBA season is entering the playoff, we use the NBA roster info saved in a SQLite DB to show you how to ask Llama 3 questions about your favorite teams or players. -## [LiveData](LiveData.ipynb): Ask Llama 3 about Live Data (using Replicate or [OctoAI](../llama_api_providers/OctoAI_API_examples/LiveData.ipynb)) +## [live_data](live_data.ipynb): Ask Llama 3 about Live Data (using Replicate or [OctoAI](../3p_integration/octoai/live_data.ipynb)) This demo app shows how to perform live data augmented generation tasks with Llama 3, [LlamaIndex](https://github.com/run-llama/llama_index), another leading open-source framework for building LLM apps, and the [Tavily](https://tavily.com) live search API. ## [WhatsApp Chatbot](./chatbots/whatsapp_llama/whatsapp_llama3.md): Building a Llama 3 Enabled WhatsApp Chatbot @@ -13,7 +13,7 @@ This step-by-step tutorial shows how to use the [WhatsApp Business API](https:// ## [Messenger Chatbot](./chatbots/messenger_llama/messenger_llama3.md): Building a Llama 3 Enabled Messenger Chatbot This step-by-step tutorial shows how to use the [Messenger Platform](https://developers.facebook.com/docs/messenger-platform/overview) to build a Llama 3 enabled Messenger chatbot. -### RAG Chatbot Example (running [locally](./chatbots/RAG_chatbot/RAG_Chatbot_Example.ipynb) or on [OctoAI](../llama_api_providers/OctoAI_API_examples/RAG_Chatbot_example/RAG_Chatbot_Example.ipynb)) +### RAG Chatbot Example (running [locally](./chatbots/RAG_chatbot/RAG_Chatbot_Example.ipynb) or on [OctoAI](../3p_integration/octoai/RAG_Chatbot_example/RAG_Chatbot_Example.ipynb)) A complete example of how to build a Llama 3 chatbot hosted on your browser that can answer questions based on your own data using retrieval augmented generation (RAG). You can run Llama2 locally if you have a good enough GPU or on OctoAI if you follow the note [here](../README.md#octoai_note). ## [Sales Bot](./chatbots/sales_bot/SalesBot.ipynb): Sales Bot with Llama3 - A Summarization and RAG Use Case diff --git a/tools/benchmarks/inference/on_prem/README.md b/tools/benchmarks/inference/on_prem/README.md index 8f0da859b7fd5c24bea2c468ebbbf6c20041223c..758ba30ab568974107c20f8730922c60a92a6642 100644 --- a/tools/benchmarks/inference/on_prem/README.md +++ b/tools/benchmarks/inference/on_prem/README.md @@ -7,7 +7,7 @@ We support benchmark on these serving framework: # vLLM - Getting Started -To get started, we first need to deploy containers on-prem as a API host. Follow the guidance [here](../../../3p_integration/llama-on-prem.md#setting-up-vllm-with-llama-3) to deploy vLLM on-prem. +To get started, we first need to deploy containers on-prem as a API host. Follow the guidance [here](../../../../recipes/3p_integration/llama_on_prem.md#setting-up-vllm-with-llama-3) to deploy vLLM on-prem. Note that in common scenario which overall throughput is important, we suggest you prioritize deploying as many model replicas as possible to reach higher overall throughput and request-per-second (RPS), comparing to deploy one model container among multiple GPUs for model parallelism. Additionally, as deploying multiple model replicas, there is a need for a higher level wrapper to handle the load balancing which here has been simulated in the benchmark scripts. For example, we have an instance from Azure that has 8xA100 80G GPUs, and we want to deploy the Meta Llama 3 70B instruct model, which is around 140GB with FP16. So for deployment we can do: