updated 2024-09-20
Version 2409? (Build 16.0.17928.20148)
| /* Copyright 2022 Google LLC. | |
| SPDX-License-Identifier: Apache-2.0 */ | |
| class MakePaymentViewModel(...) : ViewModel() { | |
| val uiState: StateFlow<MakePaymentUiState> = /* ... */ | |
| // ⚠️⚠️ DO NOT DO THIS!! ⚠️⚠️ | |
| // This one-off ViewModel event hasn't been handled nor reduced to state | |
| // Boolean represents whether or not the payment was successful |
| 4.0.0: | |
| Windows: https://desktop.docker.com/win/main/amd64/67817/Docker%20Desktop%20Installer.exe | |
| Mac with Intel chip: https://desktop.docker.com/mac/main/amd64/67817/Docker.dmg | |
| Mac with Apple chip: https://desktop.docker.com/mac/main/arm64/67817/Docker.dmg | |
| release_date: '2021-08-31' | |
| 4.0.1: | |
| Windows: https://desktop.docker.com/win/main/amd64/68347/Docker%20Desktop%20Installer.exe | |
| Mac with Intel chip: https://desktop.docker.com/mac/main/amd64/68347/Docker.dmg | |
| Mac with Apple chip: https://desktop.docker.com/mac/main/arm64/68347/Docker.dmg | |
| release_date: '2021-09-13' |
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = ["transformers", "jinja2", "rich"] | |
| # /// | |
| from transformers import AutoTokenizer | |
| from rich.console import Console | |
| from rich.text import Text | |
| console = Console() |
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = ["renderers", "transformers>=4.46", "jinja2", "rich"] | |
| # /// | |
| """ | |
| Replay the TITO failure modes from tito_failure_modes.py using | |
| PrimeIntellect's `renderers` package (hand-coded per-model bridges) | |
| instead of the naive `apply_chat_template`-delta algorithm. |
I need very often to modify filenames or replace/delete their parts across huge number of files. I was using sed command for these purposes but recently I have found out that all these tasks can be easily done directly in bash (or zsh) because both of them support so called string manipulation operations.
Define some example string:
$ file=some_file_name.txt
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.