Help assistant not reading from Knowledge Base
# support
i
We ran similar test in our staging environment which has exactly the same prompt and same config, and its working perfectly. Need help urgently thank you. PROD: This is not working: [ { "id": "6cd244e3-432a-4c3b-a1a6-bd6e9ecd835b", "orgId": "4bace8df-6b5b-4802-89f4-e852f609b135", "name": "Knowledge Base for ee0d3c1f-1894-442c-9446-ee978ccf06b5", "provider": "trieve", "createdAt": "2025-06-11T03:30:46.940Z", "updatedAt": "2025-06-11T03:30:50.819Z", "vectorStoreProviderId": "944ac33e-7c52-4a96-8c39-7f78c3d0ca19", "vectorStoreSearchPlan": { "searchType": "fulltext", "scoreThreshold": 0, "removeStopWords": true }, "vectorStoreCreatePlan": { "fileIds": [ "0035fa56-b16a-42c8-a5f9-b6348bd59a8a" ] } }, ] STAGING: This is working: [ { "id": "1c4d2869-63c8-4be8-b942-0132bf7a3e0e", "orgId": "218761d7-4a06-4459-9fdc-d4c0a66490d2", "name": "Knowledge Base for ae2a7b21-1370-4f33-b809-fef896de71d7", "provider": "trieve", "createdAt": "2025-06-09T07:39:41.292Z", "updatedAt": "2025-06-11T03:37:14.107Z", "vectorStoreProviderId": "3839f989-294d-4cb7-852f-771cd5524f64", "vectorStoreSearchPlan": { "searchType": "fulltext", "scoreThreshold": 0, "removeStopWords": true }, "vectorStoreCreatePlan": { "fileIds": [ "fb4c5850-6e22-4515-a1d7-28f9969896f5"
@Gilang
@Vapi Support Bot can you help please?
c
Hey! To help track down this issue, could you share: - The call ID of the call attempting to pull from the knowledge base
i
Hi, successful KB is call ID: 235785c7-73ed-485e-b892-70ece33bce5c
the unsuccessful one is call ID: 8a34cec5-e8fc-45fc-b5b0-00ca82a8f3a0
Hi @User can someone please urgently help us. We have clients asking this
c
Try using this config for your trieve knowledge base:
Copy code
{
  "knowledgeBase": {
    "provider": "trieve",
    "name": "Enlit Asia 2025 Event Knowledge Base",
    "searchPlan": {
      "searchType": "hybrid",
      "topK": 5,
      "removeStopWords": true,
      "scoreThreshold": 0.3
    },
    "createPlan": {
      "type": "import",
      "providerId": "3839f989-294d-4cb7-852f-771cd5524f64"
    }
  }
}
i
Thank you will try @Gilang
Hi @User What was the issue? Why is that the same config one is working perfectly but another dont?
I also cant see the fileid in the new config
g
The problem is, even in Dashboard Vapi, our assistant doesnt read the knowledge base or File we Upload. But strangely, in our other orgs its read. We already try to create new assistant, recreate the knowledge base via api, reupload the file. But assistant not read the file as knowledge base in our problematic Org Id. @ivy
i
@Shubham Bajaj any chance you can help us with this?
all agents using the same organisation ID not reading the KB properly
c
Trieve knowledge base is missing in call id 8a34cec5-e8fc-45fc-b5b0-00ca82a8f3a0
There is no attachment seen in the config, so if it appears to be connected with your trieve KB, delete it and create a new one.
i
What about this call ID: 7d78aaa4-f556-4515-ae98-e0435f34f64b
this is also from the failing org ID and also not referencing the KB
c
It is not present in the configuration in that last id either. Make sure you attach the knowledge base to that account/org and it will be able to reference it in the prompt. Check your tools config to ensure it is in the failing org. You can use GET on the /tools endpoint to verify if its there and a POST to create it when its confirmed that it isn't there.
i
are you able to see if it is connected to Call ID: cc7cf891-893d-4611-b9c1-cd7635abcf3f
How can you see whether it is attached in Trieve? because it looks like it is attached in Get Knowledge Base API
@Vapi
I did a Get Assistant and I can see the correct KnowledgebaseID and when I get the Get Knowledgebase also showing the correct files. Which config that you are seeing there is no attachment?
Its very weird that when I compare between call ID: 235785c7-73ed-485e-b892-70ece33bce5c and call ID: 8a34cec5-e8fc-45fc-b5b0-00ca82a8f3a0, both are exactly the same only that one is reading the KB one did not. The only difference is that the organisation ID is not the same. I did multiple try and did also delete and reattach, it is still not reading the KB.
and you are now saying that call ID 8a34cec5-e8fc-45fc-b5b0-00ca82a8f3a0 does not have attachment? I am very curious where you can see that?
Can I please get assistance here? @Vapi ? This is affecting our live client
c
i
Hi @Gilang can you please check asap thank you
g
We use knowledgeBaseId, do we need to attach the knowledgebase json directly to Model Objects? cc @ivy
Copy code
"model": {
      "model": "gpt-4o-mini",
      "tools": [
        {
          "type": "endCall",
          "messages": [
            {
              "type": "request-complete",
              "content": "Thank you and Goodbye"
            }
          ]
        }
      ],
      "messages": [
        {
          "role": "system",
          "content": "\n**System Prompt:..."
        }
      ],
      "provider": "openai",
      "maxTokens": 250,
      "temperature": 0.6,
      "numFastTurns": 1,
      **"knowledgeBaseId": "6cd244e3-432a-4c3b-a1a6-bd6e9ecd835b",**
      "emotionRecognitionEnabled": true
    },
c
No, as long as it meets the following conditions it should function: - the knowledgeBaseId attached to the assistant \- the knowledgeBase exists within the org \- the UUID matches the file UUID on that specific org \- the assistant prompt has instructions to pull from that specific knowledge base by the explicit knowledgeBase name
g
Unfortunately we solved this issues with radical moves. We create new Org and start from scratch. Its working now. Thanks everyone.
c
Glad the issue was resolved. Please reach out to us if you have any other questions regarding this issue
3 Views