Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
with query as ( | |
select | |
openai_embedding(:question, :_cookie_openai_api_key) as q | |
), | |
top_n as ( | |
select | |
value | |
from json_each( | |
faiss_search( | |
'simonwillisonblog', |
This file contains 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 discussion below addresses our material risk factors of which we are aware. Any risk factor, either by itself or together with other risk factors, could materially and adversely affect our businesses, results of operations, cash flows and/or financial condition. References to third parties may include suppliers, service providers, counterparties, financial market utilities, exchanges and clearing houses, data aggregators and other partners and their upstream and downstream service providers (e.g., fourth parties, fifth parties) who may also contribute to our risks. Other factors not currently known to us or that we currently deem immaterial could also adversely affect our businesses, results of operations, cash flows and/or financial condition. Therefore, the risk factors below should not be considered all of the potential risks that we may face. For more information on how we manage risks, see Managing Risk in the MD&A beginning on page 44. For more information about the risks contained in this section, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 logging | |
import typer | |
from pathlib import Path | |
from typing import List | |
from prodigy import set_hashes | |
logging.basicConfig(format='%(message)s', level=logging.INFO) | |
def process_file(file_path: Path, all_hashes: dict) -> dict: |
This file contains 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
# vs code create folder | |
# check python versions | |
python -v # make sure 3.9-3.12 | |
pip -v | |
# create venv | |
python -m virtualenv venv | |
source venv/bin/activate |
This file contains 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 os | |
import json | |
import typer | |
app = typer.Typer() | |
def process_scripts(input_prompts_file: str, scripts_folder: str, output_file: str): | |
output_data = [] | |
# Read input prompts from the .jsonl file |
NewerOlder