# from itertools import
from typing import Callable
from functools import wraps
def deco(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
version: '3.8' | |
services: | |
n8n: | |
image: n8nio/n8n:latest | |
volumes: | |
- n8n_data:/home/node/.n8n | |
ports: | |
- "5678:5678" | |
environment: |
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
version: '3.8' | |
services: | |
openwebui: | |
image: ghcr.io/open-webui/open-webui:main | |
ports: | |
- "3000:8080" | |
volumes: | |
- ./data:/app/backend/data | |
environment: |
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
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
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
from pymongo import MongoClient | |
client = MongoClient("localhost", port=27017) | |
products_db = client["products-db"] | |
products = products_db["products"] | |
products.delete_many({}) |
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
from pydantic import SecretStr | |
from pydantic_settings import BaseSettings, SettingsConfigDict | |
from langchain_community.chat_models import ChatYandexGPT | |
from langchain.output_parsers import StructuredOutputParser, ResponseSchema | |
from langchain_core.prompts import FewShotPromptTemplate, PromptTemplate | |
import warnings | |
warnings.filterwarnings('ignore') |