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
| ****** SemanticTextStore.db : | |
| CREATE TABLE si_db_info ( | |
| schema_version INTEGER | |
| ); | |
| CREATE TABLE si_items ( | |
| id BLOB(16) PRIMARY KEY NOT NULL | |
| ); | |
| CREATE TABLE si_diskann_graph ( | |
| id INTEGER PRIMARY KEY, |
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/sh | |
| # rename-pictures.sh | |
| # Author: Justine Tunney <[email protected]> | |
| # License: Apache 2.0 | |
| # | |
| # This shell script can be used to ensure all the images in a folder | |
| # have good descriptive filenames that are written in English. It's | |
| # based on the Mistral 7b and LLaVA v1.5 models. | |
| # | |
| # For example, the following command: |
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/sh | |
| set -e | |
| BASE_PIPER_VOICES_URL=${BASE_PIPER_VOICES_URL:-https://huggingface.co/rhasspy/piper-voices/resolve/main} | |
| INSTALL_DIR=${INSTALL_DIR:-~/.local/share/speech-dispatcher-piper} | |
| CONFIG_DIR=${CONFIG_DIR:-~/.config/speech-dispatcher/modules} | |
| CONFIG_PATH=$CONFIG_DIR/piper-generic.conf | |
| PLATFORM=${PLATFORM:-$(uname -m)} | |
| PIPER_BIN_GZ_URL=${PIPER_BIN_GZ_URL:-https://github.com/rhasspy/piper/releases/latest/download/piper_linux_$PLATFORM.tar.gz} |
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
| def forward(self, x, timesteps=None, context=None, y=None, **kwargs): | |
| # broadcast timesteps to batch dimension | |
| timesteps = timesteps.expand(x.shape[0]) | |
| hs = [] | |
| t_emb = get_timestep_embedding(timesteps, self.model_channels) # , repeat_only=False) | |
| t_emb = t_emb.to(x.dtype) | |
| emb = self.time_embed(t_emb) | |
| assert x.shape[0] == y.shape[0], f"batch size mismatch: {x.shape[0]} != {y.shape[0]}" |
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
| <#meta#> | |
| - Date: 2023-10-05 | |
| - Task: summary | |
| <#system#> | |
| Your main objective is to condense the content of the document into a concise summary, capturing the main points and themes. | |
| <#chat#> | |
| <#user#> | |
| To craft a Final Summary: | |
| 1. Read Summarized Sections: Carefully review all the summarized sections of the document. Ensure that you have a clear understanding of the main points, key details, and essential information presented in each section. |
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
| <#meta#> | |
| - Date: 2023-10-05 | |
| - Task: summary | |
| <#system#> | |
| Your main objective is to condense the content of the document into a concise summary, capturing the main points and themes. | |
| <#chat#> | |
| <#user#> | |
| Please read the provided Original section to understand the context and content. Use this understanding to generate a summary of the Original section, incorporating relevant details and maintaining coherence with the Prior Summary. | |
| Notes: |
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
| <#meta#> | |
| - Date: 2023-10-05 | |
| - Task: summary | |
| <#system#> | |
| Your main objective is to condense the content of the document into a concise summary, capturing the main points and themes. | |
| <#chat#> | |
| <#user#> | |
| Please read the provided Original section to understand the context and content. Use this understanding to generate a summary of the Original section. Separate the article into chunks, and sequentially create a summary for each chunk. Focus on summarizing the Original section, ignoring any details about sponsorships/advertisements in the text. | |
| Summarized Sections: |
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
| COPY ( | |
| WITH | |
| -- Read the raw log line by line by abusing CSV parser | |
| raw_log AS ( | |
| FROM read_csv_auto('/tmp/log/access.log-20230904.gz', header=false, delim='\0') | |
| ) | |
| , combined_log AS ( | |
| SELECT regexp_extract(column0 | |
| , '^(\S+) (\S+) (\S+) \[(.*?)\] "([A-Z]+?) (.*?) HTTP/(.*?)" (\d+) (\d+) "(.*?)" "(.*?)"$' | |
| , [ 'ip', 'identity', 'userid', 'timestamp', 'method' |
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/sh | |
| set -euo pipefail | |
| #set -x | |
| MICRODNF_PACKAGES_F38="https://kojipkgs.fedoraproject.org//packages/microdnf/3.9.0/2.fc38/x86_64/microdnf-3.9.0-2.fc38.x86_64.rpm \ | |
| https://kojipkgs.fedoraproject.org//packages/libpeas/1.34.0/3.fc38/x86_64/libpeas-1.34.0-3.fc38.x86_64.rpm \ | |
| https://kojipkgs.fedoraproject.org//packages/dnf/4.14.0/2.fc38/noarch/dnf-data-4.14.0-2.fc38.noarch.rpm \ | |
| https://kojipkgs.fedoraproject.org//packages/libdnf/0.68.0/2.fc38/x86_64/libdnf-0.68.0-2.fc38.x86_64.rpm" |