[GH-ISSUE #3830] [BUG]: WorkSpace Vector Search API always return empty array #2450

Closed
opened 2026-02-22 18:29:43 -05:00 by yindo · 2 comments
Owner

Originally created by @Xheldon on GitHub (May 14, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3830

How are you running AnythingLLM?

Docker (local)

What happened?

I send an vector-search request, It's success but the result is {result: []}, and always is. Why?

Are there known steps to reproduce?

  1. I embedding an wiki in a workspace named 'momo'
  2. I Open the /api/docs and in workspace section, I send an chat request, It's work well and return what I want.
  3. I send an vector-search request, It's success but the result is {result: []}, and always is.
  4. Why?

The image:

workspace/momo/chat success:

Image

and the workspace/momo/vector-search always return empty array no matter how I change the query within 200ms:

Image

Note: The Vector DB is the default LanceDB, and the chat model I set is grok-3

Originally created by @Xheldon on GitHub (May 14, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3830 ### How are you running AnythingLLM? Docker (local) ### What happened? I send an `vector-search` request, It's success but the result is {result: []}, and always is. Why? ### Are there known steps to reproduce? 1. I embedding an wiki in a workspace named 'momo' 2. I Open the `/api/docs` and in workspace section, I send an `chat` request, It's work well and return what I want. 3. I send an `vector-search` request, It's success but the result is {result: []}, and always is. 4. Why? The image: workspace/momo/chat success: ![Image](https://github.com/user-attachments/assets/ac92b714-5198-4ad5-84bf-ee6aeec4f330) and the workspace/momo/vector-search always return empty array no matter how I change the query within 200ms: ![Image](https://github.com/user-attachments/assets/887b0583-42aa-493e-ac84-f5f82f81e21f) Note: The Vector DB is the default LanceDB, and the chat model I set is grok-3
yindo added the possible bug label 2026-02-22 18:29:43 -05:00
yindo closed this issue 2026-02-22 18:29:43 -05:00
Author
Owner

@Xheldon commented on GitHub (May 14, 2025):

Sorry,I resolve it,It's just the params problem: I set topN: 4, scoreThreshold: 0.2, will work, but 0.2 is to low...It's the embedding model problem or my wiki?

@Xheldon commented on GitHub (May 14, 2025): Sorry,I resolve it,It's just the params problem: I set topN: 4, scoreThreshold: 0.2, will work, but 0.2 is to low...It's the embedding model problem or my wiki?
Author
Owner

@timothycarambat commented on GitHub (May 15, 2025):

Its worth noting the sources in the chat request is empty - this is what are the citations or the vector results of the query as well. If the embedding result is too low this can very well be the embedding model, but it depends on the use case and language. There are embedding models specifically for code, other languages, etc.

The default embedder is kind of ok at code, but its primary use is english/latin-based text. Also we have reranking which will help with low relevancy scores from vanilla semantic search

@timothycarambat commented on GitHub (May 15, 2025): Its worth noting the `sources` in the chat request is empty - this is what are the `citations` or the vector results of the query as well. If the embedding result is too low this can very well be the embedding model, but it depends on the use case and language. There are embedding models specifically for code, other languages, etc. The default embedder is *kind of ok* at code, but its primary use is english/latin-based text. Also we have [reranking](https://docs.anythingllm.com/llm-not-using-my-docs#vector-database-settings--search-preference) which will help with low relevancy scores from vanilla semantic search
yindo changed title from [BUG]: WorkSpace Vector Search API always return empty array to [GH-ISSUE #3830] [BUG]: WorkSpace Vector Search API always return empty array 2026-06-05 14:46:36 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2450