diff --git a/content/blog/Open-Sourcing Tutor-GPT.md b/content/blog/Open-Sourcing Tutor-GPT.md index 75aee9ca342ce..3a31522248fe8 100644 --- a/content/blog/Open-Sourcing Tutor-GPT.md +++ b/content/blog/Open-Sourcing Tutor-GPT.md @@ -1,5 +1,6 @@ --- title: "Open-Sourcing Tutor-GPT" +date: "Jun 2, 2023" --- ![[assets/human_machine_learning.jpeg]] diff --git a/content/blog/Theory-of-Mind Is All You Need.md b/content/blog/Theory-of-Mind Is All You Need.md index 9a77f9cac3b16..1995906929460 100644 --- a/content/blog/Theory-of-Mind Is All You Need.md +++ b/content/blog/Theory-of-Mind Is All You Need.md @@ -1,5 +1,6 @@ --- title: "Theory-of-Mind Is All You Need" +date: "Jun 12, 2023" --- ## TL;DR diff --git "a/content/notes/CJK + Latex Support (\346\265\213\350\257\225).md" "b/content/notes/CJK + Latex Support (\346\265\213\350\257\225).md" deleted file mode 100644 index 0f9afc2739577..0000000000000 --- "a/content/notes/CJK + Latex Support (\346\265\213\350\257\225).md" +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: "CJK + Latex Support (测试)" ---- - -## Chinese, Japanese, Korean Support -几乎在我们意识到之前,我们已经离开了地面。 - -우리가 그것을 알기도 전에 우리는 땅을 떠났습니다. - -私たちがそれを知るほぼ前に、私たちは地面を離れていました。 - -## Latex - -Block math works with two dollar signs `$$...$$` - -$$f(x) = \int_{-\infty}^\infty - f\hat(\xi),e^{2 \pi i \xi x} - \,d\xi$$ - -Inline math also works with single dollar signs `$...$`. For example, Euler's identity but inline: $e^{i\pi} = -1$ - -Aligned equations work quite well: - -$$ -\begin{aligned} -a &= b + c \\ &= e + f \\ -\end{aligned} -$$ - -And matrices - -$$ -\begin{bmatrix} -1 & 2 & 3 \\ -a & b & c -\end{bmatrix} -$$ - -## RTL -More information on configuring RTL languages like Arabic in the [config](notes/config.md) page. diff --git a/content/notes/Human-AI chat message paradigm hamstrings possible conversation paradigms.md b/content/notes/Human-AI chat message paradigm hamstrings possible conversation paradigms.md new file mode 100644 index 0000000000000..be95655ecfd6b --- /dev/null +++ b/content/notes/Human-AI chat message paradigm hamstrings possible conversation paradigms.md @@ -0,0 +1,9 @@ +TL;DR: they aren't very flexible for intermediate metacognition steps + +It's interesting that the machine learning community has decided to converge on this training paradigm because it assumes only two participants in a conversation. Just thinking intuitively about what happens when you train/fine-tune a language model, you being to reinforce token distributions that are appropriate to come in between the special tokens denoting human vs AI messages. + +The issue we see here is that oftentimes there are a lot of intermediate reasoning steps you want to take in order to serve a more socially-aware answer. It's almost like the current state of inference is the equivalent of saying the first thing that comes to mind -- the quickness of one's wit can vary, but usually we think for a second before responding. We saw the advantages of doing this with Bloom (see [[Theory-of-Mind Is All You Need]]) and continue to be interested in exploring how much better this can get. + +In order to assess its efficacy in this regard, I usually want to prompt it to generate as if it were the user -- which is usually very hard given the fact that those types of responses don't ever come after the special AI message token. + +We're already anecdotally seeing very well-trained completion models follow instructions well likely because of its incorporation in their pre-training. Is chat the next thing to be subsumed by general completion models? Because if so, flexibility in the types of inferences you can make would be very beneficial. Metacognition becomes something you can do at any step in a conversation. Same with instruction following and chat. Maybe this is what starts to move language models in a much more general direction. diff --git a/content/notes/Metacognition in LLMs is inference about inference.md b/content/notes/Metacognition in LLMs is inference about inference.md new file mode 100644 index 0000000000000..a133d1abb3ee6 --- /dev/null +++ b/content/notes/Metacognition in LLMs is inference about inference.md @@ -0,0 +1,3 @@ +For wetware, metacognition is typically defined as "thinking about thinking" or often a catch-all for any "higher-order" cognition. In some more specific domains, it's an introspective process, focused on thinking about your own thinking. + +In large language models, the synthetic corollary of cognition is inference. So we can reasonably call a metacognitive process in an LLM as any that runs inference on the result of prior inference. That is, inference itself is used as context. It might be instantly funneled into the next prompt, stored for later use, or leveraged by another model. Experiments here will be critical to overcome the machine learning community's fixation of task completion (see [[The machine learning industry is too focused on general task performance]]). \ No newline at end of file diff --git a/content/notes/callouts.md b/content/notes/callouts.md deleted file mode 100644 index a9b2104e5a891..0000000000000 --- a/content/notes/callouts.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: "Callouts" ---- - -## Callout support - -Quartz supports the same Admonition-callout syntax as Obsidian. - -This includes -- 12 Distinct callout types (each with several aliases) -- Collapsable callouts - -See [documentation on supported types and syntax here](https://help.obsidian.md/Editing+and+formatting/Callouts). - -## Showcase - -> [!EXAMPLE] Examples -> -> Aliases: example - -> [!note] Notes -> -> Aliases: note - -> [!abstract] Summaries -> -> Aliases: abstract, summary, tldr - -> [!info] Info -> -> Aliases: info, todo - -> [!tip] Hint -> -> Aliases: tip, hint, important - -> [!success] Success -> -> Aliases: success, check, done - -> [!question] Question -> -> Aliases: question, help, faq - -> [!warning] Warning -> -> Aliases: warning, caution, attention - -> [!failure] Failure -> -> Aliases: failure, fail, missing - -> [!danger] Error -> -> Aliases: danger, error - -> [!bug] Bug -> -> Aliases: bug - -> [!quote] Quote -> -> Aliases: quote, cite diff --git a/content/notes/config.md b/content/notes/config.md deleted file mode 100644 index 5b11aa8a0adaf..0000000000000 --- a/content/notes/config.md +++ /dev/null @@ -1,229 +0,0 @@ ---- -title: "Configuration" -tags: -- setup -weight: 0 ---- - -## Configuration -Quartz is designed to be extremely configurable. You can find the bulk of the configuration scattered throughout the repository depending on how in-depth you'd like to get. - -The majority of configuration can be found under `data/config.yaml`. An annotated example configuration is shown below. - -```yaml {title="data/config.yaml"} -# The name to display in the footer -name: Jacky Zhao - -# whether to globally show the table of contents on each page -# this can be turned off on a per-page basis by adding this to the -# front-matter of that note -enableToc: true - -# whether to by-default open or close the table of contents on each page -openToc: false - -# whether to display on-hover link preview cards -enableLinkPreview: true - -# whether to render titles for code blocks -enableCodeBlockTitle: true - -# whether to render copy buttons for code blocks -enableCodeBlockCopy: true - -# whether to render callouts -enableCallouts: true - -# whether to try to process Latex -enableLatex: true - -# whether to enable single-page-app style rendering -# this prevents flashes of unstyled content and improves -# smoothness of Quartz. More info in issue #109 on GitHub -enableSPA: true - -# whether to render a footer -enableFooter: true - -# whether backlinks of pages should show the context in which -# they were mentioned -enableContextualBacklinks: true - -# whether to show a section of recent notes on the home page -enableRecentNotes: false - -# whether to display an 'edit' button next to the last edited field -# that links to github -enableGitHubEdit: false -GitHubLink: https://github.com/jackyzha0/quartz/tree/hugo/content - -# whether to render mermaid diagrams -enableMermaid: true - -# whether to use Operand to power semantic search -# IMPORTANT: replace this API key with your own if you plan on using -# Operand search! -search: - enableSemanticSearch: false - operandApiKey: "REPLACE-WITH-YOUR-OPERAND-API-KEY" - operandIndexId: "REPLACE-WITH-YOUR-OPERAND-INDEX-ID" - -# page description used for SEO -description: - Host your second brain and digital garden for free. Quartz features extremely fast full-text search, - Wikilink support, backlinks, local graph, tags, and link previews. - -# title of the home page (also for SEO) -page_title: - "🪴 Quartz 3.3" - -# links to show in the footer -links: - - link_name: Twitter - link: https://twitter.com/_jzhao - - link_name: Github - link: https://github.com/jackyzha0 -``` - -### Code Block Titles - -To add code block titles with Quartz: - -1. Ensure that code block titles are enabled in Quartz's configuration: - - ```yaml {title="data/config.yaml", linenos=false} - enableCodeBlockTitle: true - ``` - -2. Add the `title` attribute to the desired [code block - fence](https://gohugo.io/content-management/syntax-highlighting/#highlighting-in-code-fences): - - ```markdown {linenos=false} - ```yaml {title="data/config.yaml"} - enableCodeBlockTitle: true # example from step 1 - ``` - ``` - -**Note** that if `{title=}` is included, and code block titles are not -enabled, no errors will occur, and the title attribute will be ignored. - -### HTML Favicons -If you would like to customize the favicons of your Quartz-based website, you -can add them to the `data/config.yaml` file. The **default** without any set -`favicon` key is: - -```html {title="layouts/partials/head.html", linenostart=15} - -``` - -The default can be overridden by defining a value to the `favicon` key in your -`data/config.yaml` file. For example, here is a `List[Dictionary]` example format, which is -equivalent to the default: - -```yaml {title="data/config.yaml", linenos=false} -favicon: - - { rel: "shortcut icon", href: "icon.png", type: "image/png" } -# - { ... } # Repeat for each additional favicon you want to add -``` - -In this format, the keys are identical to their HTML representations. - -If you plan to add multiple favicons generated by a website (see list below), it -may be easier to define it as HTML. Here is an example which appends the -**Apple touch icon** to Quartz's default favicon: - -```yaml {title="data/config.yaml", linenos=false} -favicon: | - - -``` - -This second favicon will now be used as a web page icon when someone adds your -webpage to the home screen of their Apple device. If you are interested in more -information about the current and past standards of favicons, you can read -[this article](https://www.emergeinteractive.com/insights/detail/the-essentials-of-favicons/). - -**Note** that all generated favicon paths, defined by the `href` -attribute, are relative to the `static/` directory. - -### Graph View -To customize the Interactive Graph view, you can poke around `data/graphConfig.yaml`. - -```yaml {title="data/graphConfig.yaml"} -# if true, a Global Graph will be shown on home page with full width, no backlink. -# A different set of Local Graphs will be shown on sub pages. -# if false, Local Graph will be default on every page as usual -enableGlobalGraph: false - -### Local Graph ### -localGraph: - # whether automatically generate a legend - enableLegend: false - - # whether to allow dragging nodes in the graph - enableDrag: true - - # whether to allow zooming and panning the graph - enableZoom: true - - # how many neighbours of the current node to show (-1 is all nodes) - depth: 1 - - # initial zoom factor of the graph - scale: 1.2 - - # how strongly nodes should repel each other - repelForce: 2 - - # how strongly should nodes be attracted to the center of gravity - centerForce: 1 - - # what the default link length should be - linkDistance: 1 - - # how big the node labels should be - fontSize: 0.6 - - # scale at which to start fading the labes on nodes - opacityScale: 3 - -### Global Graph ### -globalGraph: - # same settings as above - -### For all graphs ### -# colour specific nodes path off of their path -paths: - - /moc: "#4388cc" -``` - - -## Styling -Want to go even more in-depth? You can add custom CSS styling and change existing colours through editing `assets/styles/custom.scss`. If you'd like to target specific parts of the site, you can add ids and classes to the HTML partials in `/layouts/partials`. - -### Partials -Partials are what dictate what gets rendered to the page. Want to change how pages are styled and structured? You can edit the appropriate layout in `/layouts`. - -For example, the structure of the home page can be edited through `/layouts/index.html`. To customize the footer, you can edit `/layouts/partials/footer.html` - -More info about partials on [Hugo's website.](https://gohugo.io/templates/partials/) - -Still having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md). - -## Language Support -[CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md) comes out of the box with Quartz. - -Want to support languages that read from right-to-left (like Arabic)? Hugo (and by proxy, Quartz) supports this natively. - -Follow the steps [Hugo provides here](https://gohugo.io/content-management/multilingual/#configure-languages) and modify your `config.toml` - -For example: - -```toml -defaultContentLanguage = 'ar' -[languages] - [languages.ar] - languagedirection = 'rtl' - title = 'مدونتي' - weight = 1 -``` diff --git a/content/notes/custom Domain.md b/content/notes/custom Domain.md deleted file mode 100644 index 72cb466eb5b1f..0000000000000 --- a/content/notes/custom Domain.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: "Custom Domain" ---- - -### Registrar -This step is only applicable if you are using a **custom domain**! If you are using a `.github.io` domain, you can skip this step. - -For this last bit to take effect, you also need to create a CNAME record with the DNS provider you register your domain with (i.e. NameCheap, Google Domains). - -GitHub has some [documentation on this](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site), but the tldr; is to - -1. Go to your forked repository (`github.com//quartz`) settings page and go to the Pages tab. Under "Custom domain", type your custom domain, then click **Save**. -2. Go to your DNS Provider and create a CNAME record that points from your domain to ` 🔗 Step 3: [How to setup your Obsidian Vault to work with Quartz](notes/obsidian.md) - -## Previewing Changes -This step is purely optional and mostly for those who want to see the published version of their digital garden locally before opening it up to the internet. This is *highly recommended* but not required. - -> 👀 Step 4: [Preview Quartz Changes](notes/preview%20changes.md) - -For those who like to live life more on the edge, viewing the garden through Obsidian gets you pretty close to the real thing. - -## Publishing Changes -Now that you know the basics of managing your digital garden using Quartz, you can publish it to the internet! - -> 🌍 Step 5: [Hosting Quartz online!](notes/hosting.md) - -Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md). diff --git a/content/notes/hosting.md b/content/notes/hosting.md deleted file mode 100644 index e29f442238e20..0000000000000 --- a/content/notes/hosting.md +++ /dev/null @@ -1,99 +0,0 @@ ---- -title: "Deploying Quartz to the Web" -tags: -- setup -weight: -1 -aliases: -- hosting ---- - -## Hosting on GitHub Pages -Quartz is designed to be effortless to deploy. If you forked and cloned Quartz directly from the repository, everything should already be good to go! Follow the steps below. - -### Enable GitHub Actions Permissions -By default, GitHub disables workflows from modifying your files (for good reason!). However, Quartz needs this to write the actual site files back to GitHub. - -Head to `Settings > Action > General > Workflow Permissions` and choose `Read and Write Permissions` - -![[notes/images/github-actions.png]] -*Enable GitHub Actions* - -### Enable GitHub Pages - -Head to the 'Settings' tab of your forked repository and go to the 'Pages' tab. - -1. (IMPORTANT) Set the source to deploy from `master` (and not `hugo`) using `/ (root)` -2. Set a custom domain here if you have one! - -![Enable GitHub Pages](/notes/images/github-pages.png)*Enable GitHub Pages* - -### Pushing Changes -To see your changes on the internet, we need to push it them to GitHub. Quartz is a `git` repository so updating it is the same workflow as you would follow as if it were just a regular software project. - -```shell -# Navigate to Quartz folder -cd - -# Commit all changes -git add . -git commit -m "message describing changes" - -# Push to GitHub to update site -git push origin hugo -``` - -Note: we specifically push to the `hugo` branch here. Our GitHub action automatically runs everytime a push to is detected to that branch and then updates the `master` branch for redeployment. - -### Setting up the Site -Now let's get this site up and running. Never hosted a site before? No problem. Have a fancy custom domain you already own or want to subdomain your Quartz? That's easy too. - -Here, we take advantage of GitHub's free page hosting to deploy our site. Change `baseURL` in `/config.toml`. - -Make sure that your `baseURL` has a trailing `/`! - -[Reference `config.toml` here](https://github.com/jackyzha0/quartz/blob/hugo/config.toml) - -```toml -baseURL = "https:///" -``` - -If you are using this under a subdomain (e.g. `.github.io/quartz`), include the trailing `/`. **You need to do this especially if you are using GitHub!** - -```toml -baseURL = "https://.github.io/quartz/" -``` - -Change `cname` in `/.github/workflows/deploy.yaml`. Again, if you don't have a custom domain to use, you can use `.github.io`. - -Please note that the `cname` field should *not* have any path `e.g. end with /quartz` or have a trailing `/`. - -[Reference `deploy.yaml` here](https://github.com/jackyzha0/quartz/blob/hugo/.github/workflows/deploy.yaml) - -```yaml {title=".github/workflows/deploy.yaml"} -- name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} # this can stay as is, GitHub fills this in for us! - publish_dir: ./public - publish_branch: master - cname: -``` - -Have a custom domain? [Learn how to set it up with Quartz ](notes/custom%20Domain.md). - -### Ignoring Files -Only want to publish a subset of all of your notes? Don't worry, Quartz makes this a simple two-step process. - -❌ [Excluding pages from being published](notes/ignore%20notes.md) - -## Docker Support -If you don't want to use a hosting service, you can host using [Docker](notes/docker.md) instead! -I would *not use this method* unless you know what you are doing. - ---- - -Now that your Quartz is live, let's figure out how to make Quartz really *yours*! - -> Step 6: 🎨 [Customizing Quartz](notes/config.md) - -Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md). diff --git a/content/notes/ignore notes.md b/content/notes/ignore notes.md deleted file mode 100644 index e0314211dc49a..0000000000000 --- a/content/notes/ignore notes.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Ignoring Notes" ---- - -### Quartz Ignore -Edit `ignoreFiles` in `config.toml` to include paths you'd like to exclude from being rendered. - -```toml -... -ignoreFiles = [ - "/content/templates/*", - "/content/private/*", - "" -] -``` - -`ignoreFiles` supports the use of Regular Expressions (RegEx) so you can ignore patterns as well (e.g. ignoring all `.png`s by doing `\\.png$`). -To ignore a specific file, you can also add the tag `draft: true` to the frontmatter of a note. - -```markdown ---- -title: Some Private Note -draft: true ---- -... -``` - -More details in [Hugo's documentation](https://gohugo.io/getting-started/configuration/#ignore-content-and-data-files-when-rendering). - -### Global Ignore -However, just adding to the `ignoreFiles` will only prevent the page from being access through Quartz. If you want to prevent the file from being pushed to GitHub (for example if you have a public repository), you need to also add the path to the `.gitignore` file at the root of the repository. \ No newline at end of file diff --git a/content/notes/images/fork.png b/content/notes/images/fork.png deleted file mode 100644 index cbf7f86fbeaa6..0000000000000 Binary files a/content/notes/images/fork.png and /dev/null differ diff --git a/content/notes/images/github-actions.png b/content/notes/images/github-actions.png deleted file mode 100644 index f7342df9c3ad8..0000000000000 Binary files a/content/notes/images/github-actions.png and /dev/null differ diff --git a/content/notes/images/github-pages.png b/content/notes/images/github-pages.png deleted file mode 100644 index 2c606f588f226..0000000000000 Binary files a/content/notes/images/github-pages.png and /dev/null differ diff --git a/content/notes/images/google-domains.png b/content/notes/images/google-domains.png deleted file mode 100644 index a43826999d4f9..0000000000000 Binary files a/content/notes/images/google-domains.png and /dev/null differ diff --git a/content/notes/images/obsidian-settings.png b/content/notes/images/obsidian-settings.png deleted file mode 100644 index c4f32f6cc4970..0000000000000 Binary files a/content/notes/images/obsidian-settings.png and /dev/null differ diff --git a/content/notes/obsidian.md b/content/notes/obsidian.md deleted file mode 100644 index fb5f3d5bdd117..0000000000000 --- a/content/notes/obsidian.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: "Obsidian Vault Integration" -tags: -- setup -weight: -3 ---- - -## Setup -Obsidian is the preferred way to use Quartz. You can either create a new Obsidian Vault or link one that your already have. - -### New Vault -If you don't have an existing Vault, [download Obsidian](https://obsidian.md/) and create a new Vault in the `/content` folder that you created and cloned during the [setup](notes/setup.md) step. - -### Linking an existing Vault -The easiest way to use an existing Vault is to copy all of your files (directory and hierarchies intact) into the `/content` folder. - -## Settings -Great, now that you have your Obsidian linked to your Quartz, let's fix some settings so that they play well. - -Open Settings > Files & Links and look for these two items: - -1. Set the **New link format** to **Absolute Path in vault**. If you have a completely flat vault (no folders), this step isn't necessary. -2. Turn **on** the **Automatically update internal links** setting. - - -![[notes/images/obsidian-settings.png]]*Obsidian Settings* - -## Templates -Inserting front matter everytime you want to create a new Note gets annoying really quickly. Luckily, Obsidian supports templates which makes inserting new content really easily. - -> [!WARNING] -> -> **If you decide to overwrite the `/content` folder completely, don't remove the `/content/templates` folder!** - -Head over to Options > Core Plugins and enable the Templates plugin. Then go to Options > Hotkeys and set a hotkey for 'Insert Template' (I recommend `[cmd]+T`). That way, when you create a new note, you can just press the hotkey for a new template and be ready to go! - -> 👀 Step 4: [Preview Quartz Changes](notes/preview%20changes.md) diff --git a/content/notes/philosophy.md b/content/notes/philosophy.md deleted file mode 100644 index bf04da3b1bbe6..0000000000000 --- a/content/notes/philosophy.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: "Quartz Philosophy" ---- - -> “[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming - -## Why Quartz? -Hosting a public digital garden isn't easy. There are an overwhelming number of tutorials, resources, and guides for tools like [Notion](https://www.notion.so/), [Roam](https://roamresearch.com/), and [Obsidian](https://obsidian.md/), yet none of them have super easy to use *free* tools to publish that garden to the world. - -I've personally found that -1. It's nice to access notes from anywhere -2. Having a public digital garden invites open conversations -3. It makes keeping personal notes and knowledge *playful and fun* - -I was really inspired by [Bianca](https://garden.bianca.digital/) and [Joel](https://joelhooks.com/digital-garden)'s digital gardens and wanted to try making my own. - -**The goal of Quartz is to make hosting your own public digital garden free and simple.** You don't even need your own website. Quartz does all of that for you and gives your own little corner of the internet. diff --git a/content/notes/preview changes.md b/content/notes/preview changes.md deleted file mode 100644 index 6ce7fc0517013..0000000000000 --- a/content/notes/preview changes.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: "Preview Changes" -tags: -- setup -weight: -2 ---- - -If you'd like to preview what your Quartz site looks like before deploying it to the internet, the following -instructions guide you through installing the proper dependencies to run it locally. - - -## Install `hugo-obsidian` -This step will generate the list of backlinks for Hugo to parse. Ensure you have [Go](https://golang.org/doc/install) (>= 1.16) installed. - -```bash -# Install and link `hugo-obsidian` locally -go install github.com/jackyzha0/hugo-obsidian@latest -``` - -If you are running into an error saying that `command not found: hugo-obsidian`, make sure you set your `GOPATH` correctly (see [[notes/troubleshooting#`command not found: hugo-obsidian`|the troubleshooting page]])! This will allow your terminal to correctly recognize hugo-obsidian as an executable. - -## Installing Hugo -Hugo is the static site generator that powers Quartz. [Install Hugo with "extended" Sass/SCSS version](https://gohugo.io/getting-started/installing/) first. Then, - -```bash -# Navigate to your local Quartz folder -cd - -# Start local server -make serve - -# View your site in a browser at http://localhost:1313/ -``` - -> [!INFO] Docker Support -> -> If you have the Docker CLI installed already, you can avoid installing `hugo-obsidian` and `hugo`. Instead, open your terminal, navigate to your folder with Quartz and run `make docker` - -Afterwards, start the Hugo server as shown above and your local backlinks and interactive graph should be populated! Now, let's get it hosted online. - -> 🌍 Step 5: [Hosting Quartz online!](notes/hosting.md) diff --git a/content/notes/search.md b/content/notes/search.md deleted file mode 100644 index 04576936598d7..0000000000000 --- a/content/notes/search.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: "Search" ---- - -Quartz supports two modes of searching through content. - -## Full-text -Full-text search is the default in Quartz. It produces results that *exactly* match the search query. This is easier to setup but usually produces lower quality matches. - -```yaml {title="data/config.yaml"} -# the default option -enableSemanticSearch: false -``` - -## Natural Language -Natural language search is powered by [Operand](https://beta.operand.ai/). It understands language like a person does and finds results that best match user intent. In this sense, it is closer to how Google Search works. - -Natural language search tends to produce higher quality results than full-text search. - -Here's how to set it up. - -1. Login or Register for a new Operand account. Click the verification link sent to your email, and you'll be redirected to the dashboard. (Note) You do not need to enter a credit card to create an account, or get started with the Operand API. The first $10 of usage each month is free. To learn more, see pricing. If you go over your free quota, we'll (politely) reach out and ask you to configure billing. -2. Create your first index. On the dashboard, under "Indexes", enter the name and description of your index, and click "Create Index". Note down the ID of the index (obtained by clicking on the index name in the list of indexes), as you'll need it in the next step. IDs are unique to each index, and look something like `uqv1duxxbdxu`. -3. Click into the index you've created. Under "Index Something", select "SITEMAP" from the dropdown and click "Add Source". -4. For the "Sitemap.xml URL", put your deployed site's base URL followed by `sitemap.xml`. For example, for `quartz.jzhao.xyz`, put `https://quartz.jzhao.xyz/sitemap.xml`. Leave the URL Regex empty. -5. Get your API key. On the dashboard, under "API Keys", you can manage your API keys. If you don't already have an API key, click "Create API Key". You'll need this for the next step. -6. Open `data/config.yaml`. Set `enableSemanticSearch` to `true`, `operandApiKey` to your copied key, and `operandIndexId` to the ID of the index we created from earlier.. - -```yaml {title="data/config.yaml"} -# the default option -search: - enableSemanticSearch: true - operandApiKey: "jp9k5hudse2a828z98kxd6z3payi8u90rnjf" - operandIndexId: "s0kf3bd6tldw" -``` -7. Push your changes to the site and wait for it to deploy. -8. Check the Operand dashboard and wait for your site to index. Enjoy natural language search powered by Operand! diff --git a/content/notes/setup.md b/content/notes/setup.md deleted file mode 100644 index 0230132630ad0..0000000000000 --- a/content/notes/setup.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: "Setup" -tags: -- setup -weight: -5 ---- - -## Making your own Quartz -Setting up Quartz requires a basic understanding of `git`. If you are unfamiliar, [this resource](https://resources.nwplus.io/2-beginner/how-to-git-github.html) is a great place to start! - -### Forking -> A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project. - -Navigate to the GitHub repository for the Quartz project: - -📁 [Quartz Repository](https://github.com/jackyzha0/quartz) - -Then, Fork the repository into your own GitHub account. **Make sure that when you fork, you _uncheck_ the 'Copy the `hugo` branch only' option**. - -If you don't have an account, you can make on for free [here](https://github.com/join). More details about forking a repo can be found on [GitHub's documentation](https://docs.github.com/en/get-started/quickstart/fork-a-repo). - -![[notes/images/fork.png]] - -### Cloning -After you've made a fork of the repository, you need to download the files locally onto your machine. Ensure you have `git`, then type the following command in your terminal replacing `YOUR-USERNAME` with your GitHub username. - -```shell -git clone https://github.com/YOUR-USERNAME/quartz -``` - -## Editing -Great! Now you have everything you need to start editing and growing your digital garden. If you're ready to start writing content already, check out the recommended flow for editing notes in Quartz. - -> ✏️ Step 2: [Editing Notes in Quartz](notes/editing.md) - -Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md). diff --git a/content/notes/showcase.md b/content/notes/showcase.md deleted file mode 100644 index 5004437afc513..0000000000000 --- a/content/notes/showcase.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: "Showcase" ---- - -Want to see what Quartz can do? Here are some cool community gardens :) - -- [Quartz Documentation (this site!)](https://quartz.jzhao.xyz/) -- [Jacky Zhao's Garden](https://jzhao.xyz/) -- [Scaling Synthesis - A hypertext research notebook](https://scalingsynthesis.com/) -- [AWAGMI Intern Notes](https://notes.awagmi.xyz/) -- [Shihyu's PKM](https://shihyuho.github.io/pkm/) -- [SlRvb's Site](https://slrvb.github.io/Site/) -- [Course notes for Information Technology Advanced Theory](https://a2itnotes.github.io/quartz/) -- [Brandon Boswell's Garden](https://brandonkboswell.com) -- [Siyang's Courtyard](https://siyangsun.github.io/courtyard/) -- [Data Dictionary 🧠](https://glossary.airbyte.com/) -- [sspaeti.com's Second Brain](https://brain.sspaeti.com/) -<<<<<<<< HEAD:docs/showcase.md -- [oldwinter の数字花园](https://garden.oldwinter.top/) -======== -- [oldwinterの数字花园](https://garden.oldwinter.top/) -- [SethMB Work](https://sethmb.xyz/) ->>>>>>>> 1cc21a28 (chore: migrate content):content/notes/showcase.md -- [Abhijeet's Math Wiki](https://abhmul.github.io/quartz/Math-Wiki/) -- [Mike's AI Garden 🤖🪴](https://mwalton.me/) -- [Matt Dunn's Second Brain](https://mattdunn.info/) - -If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/hugo/content/notes/showcase.md)! diff --git a/content/notes/the machine learning industry is too focused on general task performance.md b/content/notes/the machine learning industry is too focused on general task performance.md new file mode 100644 index 0000000000000..a3af6a5239a96 --- /dev/null +++ b/content/notes/the machine learning industry is too focused on general task performance.md @@ -0,0 +1,8 @@ + +The machine learning industry has traditionally adopted an academic approach, focusing primarily on performance across a range of tasks. Large Language Models (LLMs) like GPT-4 are a testament to this approach, having been scaled up to demonstrate impressive capabilities across numerous tasks. This scaling has led to the emergence of new abilities, although debates about the true nature of these emergent abilities continue. + +However, the issue that arises with this approach is that while these models are generally capable, they may not perform tasks in the way an individual user would prefer. This is a failure mode that anyone building agents will inevitably encounter. The focus, therefore, needs to shift from how language models perform tasks in a general sense to how they perform tasks on a user-specific basis. + +Take the task of summarization as an example. It’s a popular machine learning task and models have become quite proficient at it, at least from a benchmark perspective. However, when these models summarize for users, the results often fall short. The reason for this is simple: the models don’t summarize things the way an individual user would. The key takeaways for a user would differ from the takeaways of the average internet user. + +Therefore, a shift in focus towards user-specific task performance would provide a much more dynamic and realistic approach. This would not only cater to the individual needs of the user but also pave the way for more personalized and effective machine learning applications. \ No newline at end of file diff --git a/content/notes/troubleshooting.md b/content/notes/troubleshooting.md deleted file mode 100644 index aa1d897a41951..0000000000000 --- a/content/notes/troubleshooting.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -title: "Troubleshooting and FAQ" ---- - -Still having trouble? Here are a list of common questions and problems people encounter when installing Quartz. - -While you're here, join our [Discord](https://discord.gg/cRFFHYye7t) :) - -### Does Quartz have Latex support? -Yes! See [CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md) for a brief demo. - -### Can I use \ in Quartz? -Unless it produces direct Markdown output in the file, no. There currently is no way to bundle plugin code with Quartz. - -The easiest way would be to add your own HTML partial that supports the functionality you are looking for. - -### My GitHub pages is just showing the README and not Quartz -Make sure you set the source to deploy from `master` (and not `hugo`) using `/ (root)`! See more in the [hosting](/notes/hosting) guide - -### Some of my pages have 'January 1, 0001' as the last modified date -This is a problem caused by `git` treating files as case-insensitive by default and some of your posts probably have capitalized file names. You can turn this off in your Quartz by running this command. - -```shell -# in the root of your Quartz (same folder as config.toml) -git config core.ignorecase true - -# or globally (not recommended) -git config --global core.ignorecase true -``` - -### Can I publish only a subset of my pages? -Yes! Quartz makes selective publishing really easy. Heres a guide on [excluding pages from being published](notes/ignore%20notes.md). - -### Can I host this myself and not on GitHub Pages? -Yes! All built files can be found under `/public` in the `master` branch. More details under [hosting](notes/hosting.md). - -### `command not found: hugo-obsidian` -Make sure you set your `GOPATH` correctly! This will allow your terminal to correctly recognize `hugo-obsidian` as an executable. - -```shell -# Add the following 2 lines to your ~/.bash_profile (~/.zshrc if you are on Mac) -export GOPATH=/Users/$USER/go -export PATH=$GOPATH/bin:$PATH - -# In your current terminal, to reload the session -source ~/.bash_profile # again, (~/.zshrc if you are on Mac) -``` - -### How come my notes aren't being rendered? -You probably forgot to include front matter in your Markdown files. You can either setup [Obsidian](notes/obsidian.md) to do this for you or you need to manually define it. More details in [the 'how to edit' guide](notes/editing.md). - -### My custom domain isn't working! -Walk through the steps in [the hosting guide](notes/hosting.md) again. Make sure you wait 30 min to 1 hour for changes to take effect. - -### How do I setup analytics? -Quartz by default uses [Plausible](https://plausible.io/) for analytics. - -If you would prefer to use Google Analytics, you can follow this [guide in the Hugo documentation](https://gohugo.io/templates/internal/#google-analytics). - -Alternatively, you can also import your Google Analytics data into Plausible by [following this guide](https://plausible.io/docs/google-analytics-import). - - -### How do I change the content on the home page? -To edit the main home page, open `/content/_index.md`. - -### How do I change the colours? -You can change the theme by editing `assets/custom.scss`. More details on customization and themeing can be found in the [customization guide](notes/config.md). - -### How do I add images? -You can put images anywhere in the `/content` folder. - -```markdown -Example image (source is in content/notes/images/example.png) -![Example Image](/content/notes/images/example.png) -``` - -### My Interactive Graph and Backlinks aren't up to date -By default, the `linkIndex.json` (which Quartz needs to generate the Interactive Graph and Backlinks) are not regenerated locally. To set that up, see the guide on [local editing](notes/editing.md) - -### Can I use React/Vue/some other framework? -Not out of the box. You could probably make it work by editing `/layouts/_default/single.html` but that's not what Quartz is designed to work with. 99% of things you are trying to do with those frameworks you can accomplish perfectly fine using just vanilla HTML/CSS/JS. - -## Still Stuck? -Quartz isn't perfect! If you're still having troubles, file an issue in the GitHub repo with as much information as you can reasonably provide. Alternatively, you can message me on [Twitter](https://twitter.com/_jzhao) and I'll try to get back to you as soon as I can. - -🐛 [Submit an Issue](https://github.com/jackyzha0/quartz/issues) diff --git a/content/notes/updating.md b/content/notes/updating.md deleted file mode 100644 index ef4688e999657..0000000000000 --- a/content/notes/updating.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "Updating" -aliases: -- update ---- - -Haven't updated Quartz in a while and want all the cool new optimizations? On Unix/Mac systems you can run the following command for a one-line update! This command will show you a log summary of all commits since you last updated, press `q` to acknowledge this. Then, it will show you each change in turn and press `y` to accept the patch or `n` to reject it. Usually you should press `y` for most of these unless it conflicts with existing changes you've made! - -```shell -make update -``` - -Or, if you don't want the interactive parts and just want to force update your local garden (this assumed that you are okay with some of your personalizations been overriden!) - -```shell -make update-force -``` - -Or, manually checkout the changes yourself. - -> [!warning] Warning! -> -> If you customized the files in `data/`, or anything inside `layouts/`, your customization may be overwritten! -> Make sure you have a copy of these changes if you don't want to lose them. - - -```shell -# add Quartz as a remote host -git remote add upstream git@github.com:jackyzha0/quartz.git - -# index and fetch changes -git fetch upstream -git checkout -p upstream/hugo -- layouts .github Makefile assets/js assets/styles/base.scss assets/styles/darkmode.scss config.toml data -``` diff --git a/quartz.layout.ts b/quartz.layout.ts index 51e83a9c8ed99..77cb0f68ddfed 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -9,6 +9,7 @@ export const sharedPageComponents: SharedLayout = { links: { GitHub: "https://github.com/plastic-labs/blog", "Discord Community": "https://discord.gg/plasticlabs", + "plasticlabs.ai": "https://plasticlabs.ai" }, }), } diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index a028306d8f44d..4f49b485f7c70 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -3,18 +3,21 @@ import { QuartzComponentConstructor, QuartzComponentProps } from "./types" import readingTime from "reading-time" export default (() => { - function ContentMetadata({ cfg, fileData, displayClass }: QuartzComponentProps) { + function ContentMetadata({ cfg, fileData }: QuartzComponentProps) { const text = fileData.text if (text && fileData.frontmatter.title != "Home") { const segments: string[] = [] const { text: timeTaken, words: _words } = readingTime(text) if (fileData.dates) { - segments.push(formatDate(getDate(cfg, fileData)!)) + const createdDate = formatDate(getDate(cfg, fileData)!) + const modifiedDate = formatDate(fileData.dates.modified) // Assuming fileData contains a 'dates' object with 'modified' property + + segments.push(`Created: ${createdDate}, Modified: ${modifiedDate}`) } - segments.push(timeTaken) - return

{segments.join(", ")}

+ // segments.push(timeTaken) + return

{segments.join(", ")}
{timeTaken}
} else { return null } @@ -27,4 +30,4 @@ export default (() => { } ` return ContentMetadata -}) satisfies QuartzComponentConstructor +}) satisfies QuartzComponentConstructor \ No newline at end of file