openchatai / OpenCopilot

🤖 🔥 Language-to-actions engine

Home Page:https://opencopilot.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to call knowledge base

shanmu-raoyunfei opened this issue · comments

Two pdf knowledge base files were uploaded, but were never invoked. What is the problem that the context does not get the relevant information?

@shanmu-raoyunfei Threre was a bug a day ago, where document ingestion was failing due to qdrant api key.
Please take a pull from main and make sure of the following

  1. The files were readable pdf files
  2. switch to browser: http://localhost:6333/dashboard#/console
  3. Run the following -
    replace f1eaa77b-f833-4639-be82-86b75b38d46b with your bot_id, you can find it from the url http://localhost:8888/copilot/**bot_id**
POST /collections/actions/points/scroll
{
    "filter": {
        "must": [
            {
                "key": "metadata.bot_id",
                "match": {
                    "value": "f1eaa77b-f833-4639-be82-86b75b38d46b"
                }
            }
        ]
    },
    "limit": 1,
    "with_payload": true,
    "with_vector": false
}

If the data is ingested and the bot still fails to find the relevant information, we would like to look into it

@shanmu-raoyunfei, there was a problem with the initialization of Qdrant, and a necessary fix was not included. Please pull the latest changes, and it should be resolved now.

Note: You will have to reindex those documents, sorry about that 😞