https://retellai.com/?utm_source=discord&utm_medium=seo logo
Error inserting: unsupported Unicode escape sequen...
# ❓・ai-evy-support
u
@AI Evy Error inserting: unsupported Unicode escape sequence 400 Bad Request Hello. I'm enjoying the lecture. Instructor, have you ever encountered this issue? Some of my company's PDF files are saved to the supabase database, but some of them stop working with the following error. --------------------- Issues: Error inserting: unsupported Unicode escape sequence 400 Bad Request in supabase vectorstore
a
Thanks for tagging me @.manthu. I'll look through relevant sources and get back to you shortly.
### Answer --- The error you're encountering ("unsupported Unicode escape sequence 400 Bad Request") when inserting PDF files into Supabase appears to be related to character encoding issues in your PDF content, rather than a Retell AI-specific problem. However, if you're using Retell AI's Knowledge Base feature with PDF files, here are some relevant points: Retell AI Knowledge Base supports PDF files [(1) ]() [(2) ]() , with a limit of 25 files per knowledge base and each file limited to 50MB . Best practices for file uploads to Retell AI Knowledge Base [(1) ]() : - Prefer
.md
(Markdown) files over
.txt
for better chunking and retrieval accuracy - For PDF files with tabular or image-heavy content, retrieval may be less reliable; consider adding explanatory text - Group related information within the same section so chunks remain cohesive **Regarding your Supabase vectorstore error specifically**: This appears to be a Supabase-related encoding issue rather than a Retell AI issue. The error suggests that some PDFs contain Unicode characters that aren't being properly escaped when inserted into the database. You may need to: - Check your PDF encoding before upload - Sanitize special characters in your PDF content - Review your Supabase insertion logic for proper Unicode handling If you're integrating Retell AI with Supabase [(3) ]() , you might want to reach out through the proper support channels for assistance with the integration. **
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) [[3] Connect AI call agent to Supabase](https://www.retellai.com/integrations/supabase) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.