Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextChunker not defined when building index #23

Closed
PGimenez opened this issue May 27, 2024 · 1 comment · Fixed by #24
Closed

TextChunker not defined when building index #23

PGimenez opened this issue May 27, 2024 · 1 comment · Fixed by #24

Comments

@PGimenez
Copy link
Contributor

When trying to build an index, I get an error about TextChunker not being defined. Am I missing something?

julia> using AIHelpMe
[ Info: Updated RAG pipeline to `:bronze` (Configuration key: "textembedding3large-1024-Bool").
[ Info: Loaded index from packs: julia into MAIN_INDEX

julia> using AIHelpMe: build_index

julia> using GenieFramework

julia> build_index(GenieFramework)
ERROR: UndefVarError: `TextChunker` not defined
Stacktrace:
 [1] build_index(mod::Module; verbose::Int64, kwargs::@Kwargs{})
   @ AIHelpMe ~/.julia/packages/AIHelpMe/dlOEj/src/preparation.jl:107
 [2] build_index(mod::Module)
   @ AIHelpMe ~/.julia/packages/AIHelpMe/dlOEj/src/preparation.jl:91
 [3] top-level scope
   @ REPL[4]:1

The error points to this line of code:

embedder_kwargs, chunker = TextChunker(), chunker_kwargs,

@svilupp
Copy link
Owner

svilupp commented May 27, 2024

Let me look into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants