Hello all, It's not clear to me what happens if I ...
# general-english
a
Hello all, It's not clear to me what happens if I update an existing knowledge base with a new file. Will the content of the old file be removed from the existing knowledge base and be replaced with the new one, or will the new one be added to along with the old one. Here's an example: I have
file_A
and
file_B
. I create a knowledge base with `file_A`by
POST
to
https://api.vapi.ai/knowledge-base
with
fileIds: ["file_A_id"]
. So now I have my knowledgebase with the contents of
file_A
. Now I decide to replace
file_A
with
file_B
. So I upload
file_B
, delete
file_A
and call
PATCH
to
https://api.vapi.ai/knowledge-base/old_knowledge_id
with
fileIds: ["file_B_id"]
. My questions are: 1. Does the knowledgebase now has the contents of both files, or are the contents of
file_A
been removed? 2. If the first is the case, then how should I handle the case where a user decides to replace (and/or remove) some files? Should I remove the old knowledge base entirely and create a new one?
5 Views