n4ze3m / dialoqbase

Create chatbots with ease
https://dialoqbase.n4ze3m.com/
MIT License
1.53k stars 251 forks source link

Since the update, the bots are no longer working, but... #258

Open comeback01 opened 2 months ago

comeback01 commented 2 months ago

As I wrote in the title, since the update, none of the bots are working. There are no errors in the logs, which remain on "Connecting to database..."

I had the idea to do a test on Telegram and I got the message "Oops! Embedding not found".

It's true that I changed the API and I forgot to put an Embedding model.

I fixed that, created a new bot and it's working.

My problem is that for the existing bots, I can't change the model and they don't work.

How can I fix this?

Thank you

image

n4ze3m commented 2 months ago

Hey, sorry about that. Which version did you update from to get to the latest one?

Also, in Settings > Models > Embedding Models, is your 'dialoqbase_eb_text-embedding-ada-002' model disabled?

Just to clarify, are you running via Docker or directly?

comeback01 commented 2 months ago

I put the OpenAI model, because I don't see your, since the update it has disappeared.

I'll show you the screenshots

image image image image

n4ze3m commented 2 months ago

Hey, please enable this model; it will work fine :)

image

comeback01 commented 2 months ago

I added the template and if I create a new bot, no problem it works.

But with the old bot it doesn't work, I always have the same problem.

That's because the model isn't there and you can't change it.

Why isn't the model there?

image

n4ze3m commented 2 months ago

Hey, please enable this model; it will work fine :)

image

Hey, could you go to Models > Embedding Model and enable text-embedding-ada-002 please? It may fix the old bot issue

n4ze3m commented 2 months ago

Hey, please enable this model; it will work fine :)

image

Hey, dialoqbase_eb_text-embedding-ada-002 is the internal reference ID for text-embedding-ada-002. After referring to your screenshot, I think it's disabled, which is causing the issue. If you enable it from the embedding table, it may resolve all the issues.

comeback01 commented 2 months ago

I had understood correctly, I activated it but it doesn't change anything.

But you can see from the image that it doesn't have the same name

image

n4ze3m commented 2 months ago

That's weird. I will look into it. Can you check your bot to see if it's working now? It should have worked.

Unlike the chat model, you can't currently change embedding models due to dimensional issues. Doing so may completely break the bot, which is why this feature is disabled. I will look into a way to fix it

comeback01 commented 2 months ago

Don't worry, I've deleted the docker and I'll start all over again.

It's not a bad thing

n4ze3m commented 1 month ago

In version 1.8.2, embedding models won't be disabled, but you can change them. Make sure you switch to the correct dimension model, or you'll need to retrain all the data sources

comeback01 commented 1 month ago

Hello,

I started everything from scratch on another server.

Until yesterday, I had no problem, but now I again have the sentence "There was an error processing your request."

Here are the logs:

dialoqbase | clvjpwa9z000747auf7pxisw7 dialoqbase | TypeError: query.join is not a function dialoqbase | at DialoqbaseVectorStore.similaritySearchVectorWithScore (/app/utils/store.js:67:34) dialoqbase | at DialoqbaseVectorStore.similaritySearch (/app/node_modules/@langchain/core/dist/vectorstores.cjs:108:36) dialoqbase | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) dialoqbase | at async VectorStoreRetriever.getRelevantDocuments (/app/node_modules/@langchain/core/dist/retrievers.cjs:70:29) dialoqbase | at async VectorStoreRetriever._streamIterator (/app/node_modules/@langchain/core/dist/runnables/base.cjs:151:9) dialoqbase | at async VectorStoreRetriever.transform (/app/node_modules/@langchain/core/dist/runnables/base.cjs:344:9) dialoqbase | at async RunnableSequence._streamIterator (/app/node_modules/@langchain/core/dist/runnables/base.cjs:1084:30)

n4ze3m commented 1 month ago

hey, did you change the embedding model ?

comeback01 commented 1 month ago

No, actually I created two bots that I use on Telegram, and when it didn't work, I didn't have a PC.

I think before the outage, I made a third bot based on a YouTube video, but there was a problem and I deleted the bot.

If necessary, I don't mind deleting the server again, it's quick.

n4ze3m commented 1 month ago

That is strange. I will try to reproduce this issue, since it's caused by the embedding model. By the way, which embedding model are you currently using

comeback01 commented 1 month ago

I'm using text-embedding-3-large, but I have also tried text-embedding-3-small.

Since I'm using the program for two Telegram bots, I erased everything and started over again.

I don't want to touch it for now, and if the problem comes back, I'll give you full access and start over on another server.

Thank you for your help.