QuivrHQ / quivr

Open-source RAG Framework for building GenAI Second Brains 🧠 Build productivity assistant (RAG) ⚡️🤖 Chat with your docs (PDF, CSV, ...) & apps using Langchain, GPT 3.5 / 4 turbo, Private, Anthropic, VertexAI, Ollama, LLMs, Groq that you can share with users ! Efficient retrieval augmented generation framework
https://quivr.com
Other
35.95k stars 3.49k forks source link

Error when chatting in local installation #363

Closed abnerjacobsen closed 1 year ago

abnerjacobsen commented 1 year ago

Application error: a client-side exception has occurred (see the browser console for more information).

After I uoloaded some PDF's an try to aks a question I got the above error.

The browser console show me this error:

Fetching all brains for a user
_vercel/insights/script.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
layout-166bddc43585e8ec.js:1 BRAINS Objectbrains: []length: 0__proto__: Array(0)__proto__: Object
layout-166bddc43585e8ec.js:1 Array(0)length: 0__proto__: Array(0)
layout-166bddc43585e8ec.js:1 Fetched all brains for user
38-43d4809d7f8c3f60.js:1 Fetching all chats
38-43d4809d7f8c3f60.js:1 Fetched all chats
38-43d4809d7f8c3f60.js:1 Fetching all chats
38-43d4809d7f8c3f60.js:1 Fetched all chats
38-43d4809d7f8c3f60.js:1 ---- Creating a new chat ----
38-43d4809d7f8c3f60.js:1 Objectchats: []length: 0__proto__: Array(0)__proto__: Object
38-43d4809d7f8c3f60.js:1 Objectchats: []length: 0__proto__: Array(0)__proto__: Object
139-3fa1ce7dfff2c17b.js:1 TypeError: t.split(...).at is not a function
    at I (38-43d4809d7f8c3f60.js:1)
    at rs (2443530c-da70b571b1f7722c.js:9)
    at iv (2443530c-da70b571b1f7722c.js:9)
    at oR (2443530c-da70b571b1f7722c.js:9)
    at 2443530c-da70b571b1f7722c.js:9
    at oD (2443530c-da70b571b1f7722c.js:9)
    at ok (2443530c-da70b571b1f7722c.js:9)
    at E (139-3fa1ce7dfff2c17b.js:25)
    at MessagePort.C (139-3fa1ce7dfff2c17b.js:25)

The log of the docker backend is this:

2023-06-21 22:46:19,341 [INFO] utils.users: User abner@apoana.com.br request count updated to 5
2023-06-21 22:46:26,930 [INFO] utils.chats: New chat entry in chats table for user 437242b2-2769-44bb-8b3e-f25fcd12fb8a
2023-06-21 22:46:27,695 [INFO] utils.chats: Insert response [{'chat_id': 'f4cfe631-a36c-4c02-92a4-75e01cdac6c3', 'user_id': '437242b2-2769-44bb-8b3e-f25fcd12fb8a', 'creation_time': '2023-06-21T22:46:27.608083', 'history': [['user', 'Como eu abro uma conta ?'], ['assistant', 'Para abrir uma conta no BANESTES, você precisa fornecer cópia da documentação exigida nos normativos reguladores expedidos pelo Banco Central do Brasil, juntamente com os originais. Você pode se dirigir a uma agência do BANESTES e solicitar a abertura de conta, seguindo as orientações do atendente. Se você for deficiente visual ou iletrado, é necessário realizar o contrato por procuração, nomeando procurador a rogo, lavrada em cartório, com poderes específicos para abertura e movimentação de conta.']], 'chat_name': 'Como eu abro'}]
INFO:     172.21.0.1:40690 - "POST /chat HTTP/1.1" 200 OK

In Supabase the tables brains, brains_users and bran_vectors are empty, but, the table vectors have records from the documents I uploaded.

Some can help me with this issue ?

Thanks

Bobbywr7 commented 1 year ago

I am getting the same error, did you find a fix?

github-actions[bot] commented 1 year ago

Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.