https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am trying to attach a knowledge base in
# ❓・ai-evy-support
d
@AI Evy I am trying to attach a knowledge base in .txt format, but it is showing in progress for quite some time.
a
Thanks for tagging me @delightful_rabbit_78590. I'll look through relevant sources and get back to you shortly.
### Answer A knowledge base can legitimately stay in the
in_progress
status while its sources are still being processed. [(1) ]() [(2) ]() For
.txt
files specifically, the documented constraints are: [(3) ]() - Max 25 files per knowledge base - Max 50MB per file - For
.txt
(and other supported formats) , the file must respect the general 50MB limit If your
.txt
file is under 50MB and you still see
in_progress
for a long time, that specific behavior (very long processing) is not described in the available documentation. [(1) ]() [(3) ]() [(2) ]() You can also programmatically check the status using the
GET /list-knowledge-bases
endpoint and inspect the
status
field (
in_progress
,
complete
, or
error
) for the relevant `knowledge_base_id`: [(2) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const knowledgeBaseResponses = await client.knowledgeBase.list() ;
console.log(knowledgeBaseResponses) ;
Since the exact cause of a long
in_progress
state is not documented, I don’t have more specific troubleshooting steps from these sources. [(1) ]() [(3) ]() [(2) ]() [(6) ]()
​ To learn more, see the sources I considered: [[1] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) [[2] List Knowledge Bases](https://docs.retellai.com/api-references/list-knowledge-bases) [[3] Knowledge Base](https://docs.retellai.com/build/knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.