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

Mathematica Notebook Assistant will not run (on hp envy-34 with i9 and 128GB memory) #985

Closed
anton-heijs opened this issue Dec 17, 2024 · 3 comments

Comments

@anton-heijs
Copy link

Describe the issue in detail here. Attach any relevant screenshots or files. The section below was automatically generated. Remove any information that you do not wish to include in the report.

vectors = ConfirmBy[
If[ AllTrue[ strings, StringMatchQ[ WhitespaceCharacter... ] ],
Developer`ToPackedArray @ Rest @ sentenceBERTEmbedding @ Prepend[ strings, "hello" ],
Developer`ToPackedArray @ sentenceBERTEmbedding @ strings
],
Developer`PackedArrayQ,
"PackedArray"
];

Debug Data
Property Value
Name "Wolfram/Chatbook"
Version "2.0.1"
ReleaseID "92802b1ef8f559233ce0b012c36984092f64df5b"
EvaluationEnvironment "Session"
FrontEndVersion "Desktop: 14.1 for Microsoft Windows (64-bit) (July 16, 2024)"
KernelVersion "14.1.0 for Microsoft Windows (64-bit) (July 16, 2024)"
SystemID "Windows-x86-64"
Notebooks True
DynamicEvaluation True
SynchronousEvaluation False
TaskEvaluation False

Settings

Property Value
InheritanceTest True
SetCellDingbat False
TabbedOutput False
WorkspaceChat True
AllowSelectionContext True
AppName "NotebookAssistance"
LLMEvaluator "NotebookAssistant"
MaxContextTokens 32768
MaxToolResponses 3
Model <|"Service" -> "LLMKit", "Name" -> Automatic|>
PromptGenerators {"RelatedDocumentation"}
ServiceCaller "NotebookAssistance"
Tools {"NotebookEditor"}
ToolSelectionType <|"DocumentationLookup" -> None, "DocumentationSearcher" -> None|>
ToolOptions <|"WolframLanguageEvaluator" -> <|"AppendURIPrompt" -> True, "Method" -> "Session"|>|>
AutoGenerateTitle True
AutoSaveConversations True
ConversationUUID "6119aa0d-4ec3-4ae8-a3a6-e3e79ee6d394"
StyleSheetVersion "1.5.2.3.3941177587"

Failure Data

<|
  "Evaluation" :> Wolfram`Chatbook`PromptGenerators`VectorDatabases`Private`getAndCacheEmbeddings[{"User: ```wl\nIn[1]:= PacletSiteUpdate /@ PacletSites[];\n\nIn[2]:= PacletInstall /@ {\"ServiceConnection_OpenAI\", \"AzureOpenAI\"}\n\nOut[2]=\n{PacletObject[Association[\"Name\" -> \"ServiceConnection_OpenAI\", \"Version\" -> \"13.3.30\", \n  \"MathematicaVersion\" -> \"14.1+\", \"Updating\" -> Automatic, \n  \"Extensions\" -> {{\"Kernel\", \"Root\" -> \"Kernel\", \"Context\" -> {\"OpenAI`\", \"OpenAILoad`\"}}, \n...,
  "Information" -> "PackedArray@@Source/Chatbook/PromptGenerators/VectorDatabases.wl:635,19-642,10",
  "ConfirmationType" -> "ConfirmBy",
  "Expression" :> Join[$Failed][[{1, 2}]],
  "Function" -> Developer`PackedArrayQ,
  "Stack" :> Wolfram`Chatbook`Common`Private`$stack$101419,
  "Failure" -> Failure["ConfirmationFailed", <|"MessageTemplate" -> "PackedArray@@Source/Chatbook/PromptGenerators/VectorDatabases.wl:635,19-642,10", "MessageParameters" -> {}, "ConfirmationType" -> "ConfirmBy", "Expression" :> Join[$Failed][[{1, 2}]], "Information" -> "PackedArray@@Source/Chatbook/PromptGenerators/VectorDatabases.wl:635,19-642,10", "Function" -> Developer`PackedArrayQ|>],
  "Arguments" -> {}
|>

Stack Data

trimURL
throwFailure
catchTop
formatGeneratedPrompt
catchTopAs
withChatState
catchTop

fixing notebook assistant step1
fixing notebook assistant step2
fixing notebook assistant step3
fixing notebook assistant step4

@raverydavis
Copy link

It looks like a resource object got into a broken state. Please try starting a new session and evaluate each of these lines in a new session.

ResourceRemove[ResourceObject["all-MiniLM-L6-v2"]]
ResourceRemove[ResourceObject["all-MiniLM-L12-v2"]]
Quit
ResourceUpdate["all-MiniLM-L6-v2"]
ResourceUpdate["all-MiniLM-L12-v2"]
Quit
NetModel["all-MiniLM-L6-v2"]
NetModel["all-MiniLM-L12-v2"]

@raverydavis
Copy link

One of your screenshots, the third one, looks like a paclet was corrupted. Please also try evaluating this

PacletUninstall/@{"MXNetResources","CUDAResources","ONNXRuntimeResources"}

@rhennigan
Copy link
Member

Duplicate of #981

@rhennigan rhennigan marked this as a duplicate of #981 Jan 6, 2025
@rhennigan rhennigan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
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

No branches or pull requests

3 participants