This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Task: | |
Respond to the user query using the provided context, incorporating inline citations in the format [source_id] **only when the <source_id> tag is explicitly provided** in the context. | |
### Guidelines: | |
- If you don't know the answer, clearly state that. | |
- If uncertain, ask the user for clarification. | |
- Respond in the same language as the user's query. | |
- If the context is unreadable or of poor quality, inform the user and provide the best possible answer. | |
- If the answer isn't present in the context but you possess the knowledge, explain this to the user and provide the answer using your own understanding. | |
- **Only include inline citations using [source_id] when a <source_id> tag is explicitly provided in the context.** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Provision JupyterLab on a VM | |
hosts: all | |
become: yes | |
vars_files: | |
- vars/main.yml | |
pre_tasks: | |
- name: Install system dependencies | |
import_tasks: tasks/system_deps.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.litellm.ai/docs/proxy/configs | |
# https://docs.litellm.ai/docs/proxy/quickstart | |
model_list: | |
# https://docs.lambdalabs.com/public-cloud/lambda-inference-api/#listing-models | |
- model_name: hermes3-70b | |
litellm_params: | |
model: openai/hermes3-70b | |
api_key: "os.environ/OPENAI_API_KEY" | |
api_base: "os.environ/OPENAI_API_BASE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
become: true | |
vars: | |
postgres_version: "16" | |
postgres_password: "" | |
tasks: | |
- name: Install required packages | |
apt: | |
name: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
import os | |
# https://schema.org/Recipe | |
def create_recipe_from_arguments(name: str, | |
directions: str, | |
ingredients: str, | |
author: str = "", | |
cook_time: str = "10m", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
from urllib.parse import urljoin | |
def find_recipes_in_mealie( | |
searchTerm: str, | |
categories_csv: str = None, | |
tags_csv: str = None) -> str: | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import datetime | |
import json | |
import os | |
def read_mealplans(start_date: str = None, end_date: str = None): | |
""" | |
Reads the meal plans from Mealie and returns it as a string. | |
Parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import requests | |
import os | |
import json | |
import logging | |
#logging.basicConfig(level=logging.DEBUG) | |
def update_recipe_categories(recipe_slug: str, categories_csv: str) -> None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import requests | |
import os | |
import json | |
def add_recipe_note(recipe_slug: str, note_title: str, note_text:str) -> None: | |
""" | |
Appends a new note to the given recipe in Mealie. | |
NewerOlder