SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
544 stars 123 forks source link

Issue with Chromabd and vectorization. #190

Open Theking1313 opened 10 months ago

Theking1313 commented 10 months ago

I tried using the chromadb feature and it seems to have installed correctly but it does not work, even when I press the Vectorize All button. I'm using default settings but am using gpu for extras.

Vectorization failed Check server console for more details

Streaming request finished
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at LocalIndex.<anonymous> (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:337:31)
    at Generator.next (<anonymous>)
    at fulfilled (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:28:58)
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at LocalIndex.<anonymous> (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:337:31)
    at Generator.next (<anonymous>)
    at fulfilled (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:28:58)
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at LocalIndex.<anonymous> (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:337:31)
    at Generator.next (<anonymous>)
    at fulfilled (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:28:58)
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at LocalIndex.<anonymous> (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:337:31)
    at Generator.next (<anonymous>)
    at fulfilled (C:\New folder (2)\SillyTavern-1.10.8\node_modules\vectra\lib\LocalIndex.js:28:58)

image

Cohee1207 commented 10 months ago

Delete the vectors folder for your chat in the ST directory and regenerate them in the plugin settings.

Theking1313 commented 10 months ago

Thanks that worked.

I deleted the Vector folder and how see the processed number go up.

I will now how to test using the database and see it in action on a new chat.

Technologicat commented 7 months ago

Note that the Smart Context extension has now been superseded by the built-in Vector Storage extension.

Upgrading is recommended, as the old Smart Context extension is no longer developed.

Vector Storage does not need ChromaDB.

To upgrade: