Skip to content

Smart Chat is not answering simple queries correctly (or does not have the data)  #441

@annie-elequin

Description

@annie-elequin

Hello, I'm having some trouble with Smart Chat. I have an extremely small vault, I actually decided to start using Obsidian BECAUSE of Smart Connections.

Lets say I have a note with a gate code to a vacation home. The note will have in it:

"The gate code to the mountain cabin is 1234."

I ask Smart Chat "What is the gate code to the mountain cabin?"

Expected Behavior:

Smart Chat answers "The gate code is 1234."

Actual Behavior:

Smart Chat answers "Based on your notes, there is no information provided about a code for the lakehouse."


It's true that the prompt (using the copy feature in smart chat) does not seem to have the note in question.

Settings info:

image image

perhaps this is some kind of embeddings issue? How can I ensure that all my notes are embedded correctly? Or is there something else going on here?

Here is a screenshot where the error linked me to in the code - line 4427.
image

VM330:1 Uncaught SyntaxError: Expected ',' or ']' after array element in JSON at position 223
    at JSON.parse (<anonymous>)
    at eval (plugin:smart-connections:4427:33)
    at eval (plugin:smart-connections:3794:13)
    at Array.every (<anonymous>)
    at ScStreamer.dispatchEvent (plugin:smart-connections:3793:45)
    at ScStreamer.eval (plugin:smart-connections:3836:18)
    at Array.forEach (<anonymous>)
    at ScStreamer._onStreamProgress (plugin:smart-connections:3834:40)
eval @ plugin:smart-connections:4427
eval @ plugin:smart-connections:3794
dispatchEvent @ plugin:smart-connections:3793
eval @ plugin:smart-connections:3836
_onStreamProgress @ plugin:smart-connections:3834
XMLHttpRequest.send (async)
stream @ plugin:smart-connections:3900
full_str @ plugin:smart-connections:4453
request_chatgpt_completion @ plugin:smart-connections:4402
initialize_response @ plugin:smart-connections:4216
await in initialize_response (async)
eval @ plugin:smart-connections:4188
VM332:1 Uncaught SyntaxError: Expected ',' or ']' after array element in JSON at position 223
    at JSON.parse (<anonymous>)
    at eval (plugin:smart-connections:4427:33)
    at eval (plugin:smart-connections:3794:13)
    at Array.every (<anonymous>)
    at ScStreamer.dispatchEvent (plugin:smart-connections:3793:45)
    at ScStreamer.eval (plugin:smart-connections:3836:18)
    at Array.forEach (<anonymous>)
    at ScStreamer._onStreamProgress (plugin:smart-connections:3834:40)
    at ScStreamer._onStreamLoaded (plugin:smart-connections:3845:14)
    ```

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions