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
| cd ~ | |
| # Download latest version of azcopy, and un-tar the executable | |
| # Link from https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10#download-azcopy | |
| curl -L 'https://aka.ms/downloadazcopy-v10-linux' | tar -zx -C ~/ | |
| # Move the binary from ~/azcopy_linux_amd64_10.22.0/azcopy/azcopy to ~/azcopy | |
| mv ~/azcopy_*/azcopy ~/ | |
| # Remove the old directory |
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
| The title | |
| --------------------------------------- | |
| CNN Articles for i3 test | |
| (CNN) -- Usain Bolt rounded off the world championships Sunday by claiming his third gold in Moscow as he anchored Jamaica to victory in the men's 4x100m relay. | |
| The fastest man in the world charged clear of United States rival Justin Gatlin as the Jamaican quartet of Nesta Carter, Kemar Bailey-Cole, Nickel Ashmeade and Bolt won in 37.36 seconds. | |
| The U.S finished second in 37.56 seconds with Canada taking the bronze after Britain were disqualified for a faulty handover. |
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 python:3.10-slim | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| tmux \ | |
| htop \ | |
| python3-dev \ | |
| gcc \ | |
| libc-dev \ | |
| libffi-dev |
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
| #!/bin/bash | |
| echo "[1/8] Creating ./demo working dir" | |
| mkdir demo | |
| cd demo | |
| echo "[2/8] Creating Python virtual environment in ./.env" | |
| python3 -m venv .env | |
| source .env/bin/activate |
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 langchain.document_loaders import TextLoader | |
| from langchain.text_splitter import RecursiveCharacterTextSplitter | |
| from langchain.vectorstores import Chroma | |
| from langchain.embeddings import HuggingFaceEmbeddings | |
| from langchain.llms import LlamaCpp | |
| from langchain.callbacks.manager import CallbackManager | |
| from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler | |
| from langchain import PromptTemplate, LLMChain |
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
| The title | |
| --------- | |
| The 12345 TEST SURVEY FROM CUSTOM STORE document | |
| The list of manufacture question | |
| --------------------------------- | |
| Is the general lighting sufficient in the premises? | |
| Are the lighting fixtures cleaned and are they intact? | |
| Is there location lighting for those workers (e.g. the elderly) who feel that the lighting in the work area is insufficient? |
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
| [ | |
| { | |
| "instruction": "Remember the question", | |
| "input": "", | |
| "output": "From the book fo PQ-GSP-O questions. Is the general lighting sufficient in the premises?" | |
| }, | |
| { | |
| "instruction": "Remember the question", | |
| "input": "", | |
| "output": "From the book of PQ-GSP-O questions. Is daylight available ?" |
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
| [ | |
| { | |
| "instruction": "Give three tips for staying healthy.", | |
| "input": "", | |
| "output": "1. Eat a balanced and nutritious diet: Make sure your meals are inclusive of a variety of fruits and vegetables, lean protein, whole grains, and healthy fats. This helps to provide your body with the essential nutrients to function at its best and can help prevent chronic diseases.\n\n2. Engage in regular physical activity: Exercise is crucial for maintaining strong bones, muscles, and cardiovascular health. Aim for at least 150 minutes of moderate aerobic exercise or 75 minutes of vigorous exercise each week.\n\n3. Get enough sleep: Getting enough quality sleep is crucial for physical and mental well-being. It helps to regulate mood, improve cognitive function, and supports healthy growth and immune function. Aim for 7-9 hours of sleep each night." | |
| }, | |
| { | |
| "instruction": "What are the three primary colors?", | |
| "input": "", | |
| "output": "The three primary colors are red, blue, |
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 typing import Optional | |
| from functools import lru_cache | |
| @lru_cache | |
| def fib(n: int) -> int: | |
| """ Return n-th fibonacci number. | |
| >>> fib(50) | |
| 12586269025 |
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
| ndarray = list[list[int]] | |
| def is_safe(board: ndarray, row: int, col: int) -> bool: | |
| n: int = len(board) | |
| # check cols | |
| if any(board[row][i] for i in range(n)): | |
| return False | |
| # check up left diagonal |
NewerOlder