anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[BUG]: LanceDBError with nomic-embed-text

Open ZiHAO-LI-cmd opened this issue 10 months ago • 1 comments

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I deployed nomic-embed-text:last embedding model on server but met an error when using it. image

If I switch to AnythingLLM Embedder, it works well. The nomic-embed-text model works well in server because I tested it and it can return embedding vectors. So, I think it maybe the incompatibility problem with LanceDB. image

Are there known steps to reproduce?

Same error from others: https://github.com/ollama/ollama/issues/2778

ZiHAO-LI-cmd avatar Apr 12 '24 07:04 ZiHAO-LI-cmd

On latest ollama:

  • ollama serve is running

  • ollama pull nomic-embed-text Set up embedder connection Screenshot 2024-04-15 at 10 27 48 AM

  • Create new workspace

  • Upload fresh document and move into workspace

  • Document is embedded successfully

  • Send Chat - complete response (openAi as LLM) Screenshot 2024-04-15 at 10 28 58 AM

Confirm DB has vectors Screenshot 2024-04-15 at 10 29 46 AM

timothycarambat avatar Apr 15 '24 17:04 timothycarambat

Closing this issue. This error results from swapping embedder providers or models after you already have cached documents or active embeddings.

When you change embedders - the dimensions between previously embedded content and new content or queries will not work. That is just how it works. We have now set a warning telling you this to prevent running into this issue #1131

timothycarambat avatar Apr 19 '24 22:04 timothycarambat