Skip to content

Commit

Permalink
Update documentation + tests (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
svilupp authored Apr 18, 2024
1 parent c9e72cd commit 0a166b3
Show file tree
Hide file tree
Showing 7,128 changed files with 1,248,526 additions and 236 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
/docs/build/

**/.DS_Store
**/.vscode
**/.vscode

# exclude scratch files
**/_*
50 changes: 49 additions & 1 deletion Artifacts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,52 @@ lazy = true

[["makie__textembedding3large-1024-Bool".download]]
sha256 = "135f36effc0d29ed20e9bc877f727e4d9d8366bcae4bf4d13f998529d1091324"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/makie__v20240330__textembedding3large-1024-Bool__v1.0.tar.gz"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/makie__v20240330__textembedding3large-1024-Bool__v1.0.tar.gz"

["julia__nomicembedtext-0-Float32"]
git-tree-sha1 = "cb1fc89392710d729cb031701353fcf58c901fc4"
lazy = true

[["julia__nomicembedtext-0-Float32".download]]
sha256 = "5bb4507db346903cc8defc395939a2b18ce035e003e1e9ab12104228d6551303"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/julia__v1.10.2__nomicembedtext-0-Float32__v1.0.tar.gz"

["julia__nomicembedtext-0-Bool"]
git-tree-sha1 = "8ef454a8c6990ce8baa0634196826600622c5364"
lazy = true

[["julia__nomicembedtext-0-Bool".download]]
sha256 = "e0a65288bc868fc0f1a91622317b3f25d0a2bf77f68c049c42e2b90d2ac3e01d"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/julia__v1.10.2__nomicembedtext-0-Bool__v1.0.tar.gz"

["tidier__nomicembedtext-0-Float32"]
git-tree-sha1 = "0bb2e5865246462990d440dc8f75237e31ebfb64"
lazy = true

[["tidier__nomicembedtext-0-Float32".download]]
sha256 = "6ff921c514faeb2b8ab0250ba28bc5ba5f7007a4f2c77cb9e280ee4ddb7fafee"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/tidier__v20240407__nomicembedtext-0-Float32__v1.0.tar.gz"

["tidier__nomicembedtext-0-Bool"]
git-tree-sha1 = "fc6b3eeca2e11d459ba5aaebfcc10f65fdc07102"
lazy = true

[["tidier__nomicembedtext-0-Bool".download]]
sha256 = "b3f604f382a7191c657c77017e9d3e455e6eacc1fa6a59e6202e8a83498d4269"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/tidier__v20240407__nomicembedtext-1024-Bool__v1.0.tar.gz"

["makie__nomicembedtext-0-Float32"]
git-tree-sha1 = "4b0ff243278fcbda1491db94e4082c1050a44d80"
lazy = true

[["makie__nomicembedtext-0-Float32".download]]
sha256 = "6325497b90a61b4200250d5075d0f6d8ec2453a53f7d18fbcfc6187d3eea2018"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/makie__v20240330__nomicembedtext-0-Float32__v1.0.tar.gz"

["makie__nomicembedtext-0-Bool"]
git-tree-sha1 = "723274bf0cb72d39efbc7b07a1de9e02eccf5ba6"
lazy = true

[["makie__nomicembedtext-0-Bool".download]]
sha256 = "c62a0d3d27fc417498d2449b59c58d18dba34164094a08206b51e88d05fa7fa7"
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/makie__v20240330__nomicembedtext-1024-Bool__v1.0.tar.gz"
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Bumped up PromptingTools to v0.20 (brings new RAG capabilities, pretty-printing, etc.)
- Changed default model to be GPT-4 Turbo to improve answer quality
- Documentation moved to Vitepress

### Fixed
- Fixed wrong initiation of `CONV_HISTORY` and other globals that led to UndefVarError. Moved several globals to `const Ref{}` pattern to ensure type stability, but it means that from now it always needs to be dereferenced with `[]` (eg, `MAIN_INDEX[]` instead of `MAIN_INDEX`).
Expand Down
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[compat]
Aqua = "0.7"
HDF5 = "0.14 - 0.17"
HTTP = "1"
JSON3 = "1"
LazyArtifacts = "<0.0.1, 1"
LinearAlgebra = "<0.0.1, 1"
PrecompileTools = "1"
Preferences = "1"
PromptingTools = "=0.20.1"
REPL = "1"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ All setup should take less than 5 minutes!
5. **Debugging**:
How did you come up with that answer? Check the "context" provided to the AI model (ie, the documentation snippets that were used to generate the answer):
```julia
AIHelpMe.pprint(AIHelpMe.LAST_RESULT[])
AIHelpMe.pprint(AIHelpMe.last_result())
# Output: Pretty-printed Question + Context + Answer with color highlights
```

Expand All @@ -115,7 +115,7 @@ All setup should take less than 5 minutes!
You can change the kwargs of `pprint` to hide the annotations or potentially even show the underlying context (snippets from the documentation):

```julia
AIHelpMe.pprint(AIHelpMe.LAST_RESULT[]; add_context = true, add_scores = false)
AIHelpMe.pprint(AIHelpMe.last_result(); add_context = true, add_scores = false)
```

## How to Obtain API Keys
Expand Down
4 changes: 4 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
node_modules/
package-lock.json
Manifest.toml
4 changes: 4 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[deps]
AIHelpMe = "01402e1f-dc83-4213-a98b-42887d758baa"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"

[compat]
DocumenterVitepress = "0.0.7"
33 changes: 24 additions & 9 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
using AIHelpMe
using Documenter
using Documenter, DocumenterVitepress

DocMeta.setdocmeta!(AIHelpMe, :DocTestSetup, :(using AIHelpMe); recursive = true)

makedocs(;
modules = [AIHelpMe],
authors = "J S <[email protected]> and contributors",
repo = "https://github.com/svilupp/AIHelpMe.jl/blob/{commit}{path}#{line}",
sitename = "AIHelpMe.jl",
format = Documenter.HTML(;
repolink = "https://github.com/svilupp/AIHelpMe.jl",
canonical = "https://svilupp.github.io/PromptingTools.jl",
edit_link = "main",
assets = String[],),
## format = Documenter.HTML(;
## repolink = "https://github.com/svilupp/AIHelpMe.jl",
## canonical = "https://svilupp.github.io/AIHelpMe.jl",
## edit_link = "main",
## assets = String[]),
format = DocumenterVitepress.MarkdownVitepress(
repo = "https://github.com/svilupp/AIHelpMe.jl",
devbranch = "main",
devurl = "dev",
deploy_url = "svilupp.github.io/AIHelpMe.jl"
),
draft = false,
source = "src",
build = "build",
pages = [
"Home" => "index.md",
"Introduction" => "introduction.md",
"Advanced" => "advanced.md",
"F.A.Q" => "faq.md",
"Reference" => "reference.md",
],)
"Reference" => "reference.md"
])

deploydocs(;
repo = "github.com/svilupp/AIHelpMe.jl",
devbranch = "main",)
target = "build",
push_preview = true,
branch = "gh-pages",
devbranch = "main")
1 change: 1 addition & 0 deletions docs/node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/esbuild

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/juice

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/markdown-it

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/parser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/rollup

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/sre

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/vite

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/vite-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/vitepress

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/vitest

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/node_modules/.bin/why-is-node-running

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0a166b3

Please sign in to comment.