Skip to content

Commit da8c2c4

Browse files
authored
Add new knowledge packs for JuliaLang, GenieFramework
1 parent 0e49097 commit da8c2c4

File tree

6 files changed

+44
-9
lines changed

6 files changed

+44
-9
lines changed

Artifacts.toml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1+
["genie__textembedding3large-0-Float32"]
2+
git-tree-sha1 = "453d1876a9c248dfc6a187e94ec4959199472162"
3+
lazy = true
4+
5+
[["genie__textembedding3large-0-Float32".download]]
6+
sha256 = "7c50469da95c7d6387b78307ea7ac15e981c61bd4121ec9772a39f9326ef8cfc"
7+
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/genie__v20240818__textembedding3large-3072-Float32__v1.0.tar.gz"
8+
9+
["genie__textembedding3large-1024-Bool"]
10+
git-tree-sha1 = "723a7d2e694c183de2e5dc38e0cc54c8d9f57b4c"
11+
lazy = true
12+
13+
[["genie__textembedding3large-1024-Bool".download]]
14+
sha256 = "868fece03ec1f1a470f2f44e969b8452c3f7c83dcb6d03d7441d395cc753ab7a"
15+
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/genie__v20240818__textembedding3large-1024-Bool__v1.0.tar.gz"
16+
17+
118
["julia__textembedding3large-0-Float32"]
2-
git-tree-sha1 = "a105a2482296fa0a80ce0c76677cc9ef673be70e"
19+
git-tree-sha1 = "4d0b4f4627e768ab86d7b57f2968627462f5e490"
320
lazy = true
421

522
[["julia__textembedding3large-0-Float32".download]]
6-
sha256 = "ff4e91908fb54b7919aad9d6a2ac5045124d43eb864fe9f96a7a68d304d4e0a2"
7-
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/julia__v1.10.2__textembedding3large-0-Float32__v1.0.tar.gz"
23+
sha256 = "ff76b9b20b1307b5299977710f0d104f84cd4314cb30f5971ebe7d644742fc95"
24+
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/julialang__v20240819__textembedding3large-3072-Float32__v1.0.tar.gz"
825

926
["julia__textembedding3large-1024-Bool"]
10-
git-tree-sha1 = "7eef82f15c72712b4f5fff2449ebf3ed64b56b14"
27+
git-tree-sha1 = "365d9e59be009b7050db7112be0dd89b7be332bc"
1128
lazy = true
1229

1330
[["julia__textembedding3large-1024-Bool".download]]
14-
sha256 = "27186886d19ea4c3f1710b4bc70e8e809d906069d5de8c992c948d97d0f454da"
15-
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/julia__v1.10.2__textembedding3large-1024-Bool__v1.0.tar.gz"
31+
sha256 = "8a88839594479ab12bd81a9a47e3bc4e2bd8aec02ad88db1dc3369b2cdb45e61"
32+
url = "https://github.com/svilupp/AIHelpMeArtifacts/raw/main/artifacts/julialang__v20240819__textembedding3large-1024-Bool__v1.0.tar.gz"
1633

1734
["juliadata__textembedding3large-0-Float32"]
1835
git-tree-sha1 = "5ea13051e16f01627a4c81fd74e664a396785934"

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
### Fixed
1212

13+
## [0.4.0]
14+
15+
### Added
16+
- Added the knowledge pack for GenieFramework org. (alias `:genie`).
17+
18+
### Updated
19+
- Updated the knowledge pack for core Julia docs (alias `:julia`).
20+
21+
Both were made possible by [Splendidbug](https://github.com/splendidbug)!
22+
23+
### Fixed
24+
- Fixed a bug in `aihelp()` where `rerank=false` and `search=false` would not block these steps if they were previously enabled.
25+
1326
## [0.3.0]
1427
### Added (thanks to [Splendidbug](https://github.com/splendidbug)!)
1528
- New knowledge packs created by Splendidbug using `DocsScraper.jl` (to be registered soon, created as part of Google Summer of Code).

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AIHelpMe"
22
uuid = "01402e1f-dc83-4213-a98b-42887d758baa"
33
authors = ["J S <[email protected]> and contributors"]
4-
version = "0.3.0"
4+
version = "0.4.0"
55

66
[deps]
77
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"

src/generation.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,15 @@ function aihelp(cfg_orig::RT.AbstractRAGConfig, index::RT.AbstractChunkIndex,
8989
## Use Cohere reranking model
9090
@assert !isempty(PT.COHERE_API_KEY) "COHERE_API_KEY is not set! Cannot use the reranker functionality."
9191
cfg.retriever.reranker = RT.CohereReranker()
92+
elseif !isnothing(rerank) && !rerank
93+
cfg.retriever.reranker = RT.NoReranker()
9294
end
9395
if !isnothing(search) && search
9496
##set TavilySearchRefiner - Requires TAVILY_API_KEY
9597
@assert !isempty(PT.TAVILY_API_KEY) "TAVILY_API_KEY is not set! Cannot use the web search refinement functionality."
9698
cfg.generator.refiner = RT.TavilySearchRefiner()
99+
elseif !isnothing(search) && !search
100+
cfg.generator.refiner = RT.NoRefiner()
97101
end
98102

99103
## Run the RAG pipeline

src/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ load_index!(:julia)
6161
6262
Or multiple packs
6363
```julia
64-
load_index!([:julia, :juliadata, :makie, :tidier, :plots, :sciml])
64+
load_index!([:julia, :juliadata, :makie, :tidier, :plots, :sciml, :genie])
6565
```
6666
But we recommend loading ONLY the packs you expect to need - unnecessary packs introduce noise.
6767
"""

src/user_preferences.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ global MAIN_INDEX::Union{Nothing, RT.AbstractChunkIndex} = nothing
1414
Currently available packs are:
1515
- `:julia` - Julia documentation, standard library docstrings and a few extras (for Julia v1.10)
1616
- `:juliadata` - JuliaData.jl organization documentation, eg, DataFrames.jl and similar packages
17+
- `:genie` - GenieFramework organization documentation, eg, Genie.jl, Stipple.jl, StippleUI.jl, etc
1718
- `:plots` - Plots.jl organization documentation, eg, Plots.jl, StatsPlots.jl, etc
1819
- `:makie` - Makie.jl organization documentation
1920
- `:tidier` - Tidier.jl organization documentation
2021
- `:sciml` - SciML organization documentation
2122
2223
These packs have been sourced and packaged with DocsScraper.jl.
2324
"""
24-
const ALLOWED_PACKS = [:julia, :juliadata, :tidier, :sciml, :plots, :makie]
25+
const ALLOWED_PACKS = [:julia, :juliadata, :tidier, :sciml, :plots, :makie, :genie]
2526

2627
"""
2728
LOADED_PACKS

0 commit comments

Comments
 (0)