Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.33k stars 2.74k forks source link

[BUG]: 1 Documents Failed to Add, fetch failed #2345

Closed emulk closed 1 month ago

emulk commented 1 month ago

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

hello, when i try to add documents, txt or pdf documents, i receve always same error, documents failed to add, fetch failed

i'm using ollama, with llama 3.1 anythingllm v.1.6.7

Are there known steps to reproduce?

No response

timothycarambat commented 1 month ago

Responded already, but please refer to https://docs.anythingllm.com/fetch-failed-on-upload#windows-visual-c-redistributable

emulk commented 1 month ago

Hi, i have already installed Visual C++ Redistributable v14.x on my pc, and that dosen't solve the issue.

my processo is : 13th Gen Intel(R) Core(TM) i7-13850HX, 2304 Mhz, 20 Core(s), 28 Logical Processor(s)

timothycarambat commented 1 month ago

Are you able to post the logs for the app? The error may be more prevalent in there: https://docs.anythingllm.com/installation-desktop/debug

emulk commented 1 month ago

I have the following log:


[backend] info: [EncryptionManager] Loaded existing key & salt for encrypting arbitrary data.
[collector] info: Collector hot directory and tmp storage wiped!
[collector] info: [production] AnythingLLM Standalone Document processor listening on port 8888.
[backend] info: [TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.
[backend] info: prisma:info Starting a sqlite pool with 41 connections.
[backend] info: [TELEMETRY SENT] {"event":"server_boot","distinctId":"88654d0c-d7af-453e-8ce9-27f77e7f4706","properties":{"runtime":"desktop"}}
[backend] info: Skipping preloading of AnythingLLMOllama - LLM_PROVIDER is lmstudio.
[backend] info: [CommunicationKey] RSA key pair generated for signed payloads within AnythingLLM services.
[backend] info: [EncryptionManager] Loaded existing key & salt for encrypting arbitrary data.
[backend] info: [production] AnythingLLM Standalone Backend listening on port 3001. Network discovery is disabled.
[backend] info: [BackgroundWorkerService] Feature is not enabled and will not be started.
[backend] info: Adding new vectorized document into namespace testworkspace
[backend] info: [NativeEmbedder] Initialized
[backend] info: [RecursiveSplitter] Will split with {"chunkSize":1000,"chunkOverlap":20}
[backend] info: Chunks created from document: 1
[backend] info: [NativeEmbedder] The native embedding model has never been run and will be downloaded right now. Subsequent runs will be faster. (~23MB)
[backend] info: [NativeEmbedder] Downloading Xenova/all-MiniLM-L6-v2 from https://huggingface.co/
[backend] info: [NativeEmbedder] Failed to download model from primary URL. Using fallback https://s3.us-west-1.amazonaws.com/public.useanything.com/support/models/
[backend] info: [NativeEmbedder] Downloading Xenova/all-MiniLM-L6-v2 from https://s3.us-west-1.amazonaws.com/public.useanything.com/support/models/
[backend] error: addDocumentToNamespace fetch failed
[backend] error: Failed to vectorize Description.txt
[backend] info: [TELEMETRY SENT] {"event":"documents_embedded_in_workspace","distinctId":"88654d0c-d7af-453e-8ce9-27f77e7f4706","properties":{"LLMSelection":"lmstudio","Embedder":"native","VectorDbSelection":"lancedb","TTSSelection":"native","runtime":"desktop"}}
[backend] info: [Event Logged] - workspace_documents_added
emulk commented 1 month ago

Solved it, i downloaded the model manually.

Thank you for your help