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

Insert Title Here #980

Closed
anton-heijs opened this issue Dec 16, 2024 · 2 comments
Closed

Insert Title Here #980

anton-heijs opened this issue Dec 16, 2024 · 2 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 False
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 "55ebcd6f-2fe2-4592-9693-d35bd6e81d0a"
StyleSheetVersion "1.5.2.3.3941177587"

Failure Data

<|
  "Evaluation" :> Wolfram`Chatbook`PromptGenerators`VectorDatabases`Private`getAndCacheEmbeddings[{"User: How many people live in the Netherlands", "User: How many people live in the Netherlands"}],
  "Information" -> "PackedArray@@Source/Chatbook/PromptGenerators/VectorDatabases.wl:635,19-642,10",
  "ConfirmationType" -> "ConfirmBy",
  "Expression" :> Join[$Failed][[{2, 1}]],
  "Function" -> Developer`PackedArrayQ,
  "Stack" :> Wolfram`Chatbook`Common`Private`$stack$14782,
  "Failure" -> Failure["ConfirmationFailed", <|"MessageTemplate" -> "PackedArray@@Source/Chatbook/PromptGenerators/VectorDatabases.wl:635,19-642,10", "MessageParameters" -> {}, "ConfirmationType" -> "ConfirmBy", "Expression" :> Join[$Failed][[{2, 1}]], "Information" -> "PackedArray@@Source/Chatbook/PromptGenerators/VectorDatabases.wl:635,19-642,10", "Function" -> Developer`PackedArrayQ|>],
  "Arguments" -> {}
|>

Stack Data

trimURL
throwFailure
catchTop
formatGeneratedPrompt
catchTopAs
withChatState
@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"]

@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