chroma-core / gpt4-pdf-chatbot-langchain-chroma

javascript implementation of a PDF chatbot
110 stars 26 forks source link

error after ingest #5

Open mako34 opened 1 year ago

mako34 commented 1 year ago

I get the error:

[PineconeError: PineconeClient: Error calling upsert: PineconeError: The requested feature 'Namespaces' is not supported by the current index type 'Starter'

how to fix? thanks

jeffchuber commented 1 year ago

@mako34 not sure sorry! if you use chroma instead of pinecone it should just work

mako34 commented 1 year ago

thanks @jeffchuber , I used with chroma, but im getting now new error:

chromadb.server.fastapi Index not found, please create an instance before querying

followed the readme, ingested doc ok, but after asking query I get above error

jeffchuber commented 1 year ago

@mako34 are you running the backend server?

mako34 commented 1 year ago

yes @jeffchuber I have docker running then npm run dev

I get this from the console window running node: ready - started server on 0.0.0.0:3000, url: http://localhost:3000

on that screen I see the error:

question what is this book about
error TypeError: ids is not iterable
    at Chroma.similaritySearchVectorWithScore (file:///Users/mako/Documents/testeo/gpt4-pdf-chatbot-langchain-chroma-main/node_modules/langchain/dist/vectorstores/chroma.js:90:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 
on the screen running docker
`docker run -p 8000:8000 ghcr.io/chroma-core/chroma:0.3.21`
I get the error
        raise NoIndexException("Index not found, please create an instance before querying")
chromadb.errors.NoIndexException: Index not found, please create an instance before querying
2023-06-28 15:42:24 INFO     uvicorn.access  172.17.0.1:46400 - "POST /api/v1/collections/neurohack/query HTTP/1.1" 500

Thanks!

jeffchuber commented 1 year ago

@mako34 what port do you have your JS client pointed towards?