# Open AI Table Question

**URL:** <https://community.glideapps.com/t/open-ai-table-question/61428>\
**Category:** Ask for Help\
**Created:** [May 6, 2023, 3:37pm UTC](https://community.glideapps.com/t/open-ai-table-question/61428 "2023-05-06T15:37:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alaap\_Kanchwala](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alaap_kanchwala/32/37980_2.png) [@Alaap\_Kanchwala](https://community.glideapps.com/u/Alaap_Kanchwala)\
**Post date:** [May 6, 2023, 3:37pm UTC](https://community.glideapps.com/t/open-ai-table-question/61428/1 "2023-05-06T15:37:41Z")

</div>

Hey, I am running a business pro team on GlideApps and i have this app hosted on acrymold.info. I have played a bit with Open AI’s API’s in Glide and a few times outside of GlideApps.

Here is the issue that is occurring: Every time I try to ask Open AI a table question after filling the the details needed in the API request, it returns an error message (red bar notification in case of GlideApps) that says could not fulfill request because of bad embeddings.

My table is slightly complex with about 60 columns and 5000 rows. Is there a reason that my API is failing? My guess right now is that the table values, even in JSON, when being passed to Open AI are too large to be tokenized.

Any help or insight would be appreciated.

---

<div class="post-metadata">

**Author:** ![ALATBSOL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alatbsol/32/57182_2.png) [@ALATBSOL](https://community.glideapps.com/u/ALATBSOL)\
**Post date:** [May 6, 2023, 5:36pm UTC](https://community.glideapps.com/t/open-ai-table-question/61428/2 "2023-05-06T17:36:16Z")

</div>

I am using this functionality in one of my apps and for me there is a hard lock at 2047 rows. Each extra row gives the embeddings fault…

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [May 6, 2023, 9:10pm UTC](https://community.glideapps.com/t/open-ai-table-question/61428/3 "2023-05-06T21:10:06Z")

</div>

Hi!  
May be a better solution is a train model with table data and then using custom model.  
Of course it is a cost for training the model, but you can upload test file with your data up to 1Gb per file.  
The traning process and data preparation and uploading is very simple and situable for no coders.

---

<div class="post-metadata">

**Author:** ![Alaap\_Kanchwala](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alaap_kanchwala/32/37980_2.png) [@Alaap\_Kanchwala](https://community.glideapps.com/u/Alaap_Kanchwala)\
**Post date:** [May 7, 2023, 3:39am UTC](https://community.glideapps.com/t/open-ai-table-question/61428/4 "2023-05-07T03:39:57Z")

</div>

Hey could you please share a screen recording or an instruction on how to do this? @slscustom.ru

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [May 7, 2023, 7:01pm UTC](https://community.glideapps.com/t/open-ai-table-question/61428/5 "2023-05-07T19:01:22Z")

</div>

Now im very busy with customer project. But you can read about process on OpenAI site there very clear step by step instruction. I just readed it and follow.  
Also, i will try to take time for this video

---

<div class="post-metadata">

**Author:** ![Alaap\_Kanchwala](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alaap_kanchwala/32/37980_2.png) [@Alaap\_Kanchwala](https://community.glideapps.com/u/Alaap_Kanchwala)\
**Post date:** [May 7, 2023, 9:15pm UTC](https://community.glideapps.com/t/open-ai-table-question/61428/6 "2023-05-07T21:15:54Z")

</div>

@slscustom.ru Hey, you seem to have a strong knowledge regarding the open ai embedding integration. I appreciate you taking the time out to reply to me.

I tried searching the open AI website and found the embeddings section. it has all sorts of code containing API requests I am not quite understanding.

I understand that you are busy, even a link to the section on Open AIs page would be super helpful!

---

<div class="post-metadata">

**Author:** ![Alaap\_Kanchwala](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alaap_kanchwala/32/37980_2.png) [@Alaap\_Kanchwala](https://community.glideapps.com/u/Alaap_Kanchwala)\
**Post date:** [May 8, 2023, 6:37am UTC](https://community.glideapps.com/t/open-ai-table-question/61428/7 "2023-05-08T06:37:39Z")

</div>

@Robert_Petitto

@Jeff_Hager

@ThinhDinh

Could you guys help out?

> [@Alaap\_Kanchwala](#):
>
> Hey, I am running a business pro team on GlideApps and i have this app hosted on acrymold.info. I have played a bit with Open AI’s API’s in Glide and a few times outside of GlideApps.
> 
> Here is the issue that is occurring: Every time I try to ask Open AI a table question after filling the the details needed in the API request, it returns an error message (red bar notification in case of GlideApps) that says could not fulfill request because of bad embeddings.
> 
> My table is slightly complex with about 60 columns and 5000 rows. Is there a reason that my API is failing? My guess right now is that the table values, even in JSON, when being passed to Open AI are too large to be tokenized.
> 
> Any help or insight would be appreciated.

---

<div class="post-metadata">

**Author:** ![ShantanuIyengar](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shantanuiyengar/32/35546_2.png) [@ShantanuIyengar](https://community.glideapps.com/u/ShantanuIyengar)\
**Post date:** [May 8, 2023, 8:14am UTC](https://community.glideapps.com/t/open-ai-table-question/61428/8 "2023-05-08T08:14:21Z")

</div>

Hey @Alaap_Kanchwala  
I can help you with OpenAI integration using code which is faster and seamless compared to glide columns which get a bit unsupportive at times! 😃

---

<div class="post-metadata">

**Author:** ![Alaap\_Kanchwala](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alaap_kanchwala/32/37980_2.png) [@Alaap\_Kanchwala](https://community.glideapps.com/u/Alaap_Kanchwala)\
**Post date:** [May 8, 2023, 8:43am UTC](https://community.glideapps.com/t/open-ai-table-question/61428/9 "2023-05-08T08:43:49Z")

</div>

Hey Shantanu, I really appreciate that!

Could we get on a quick 5 minute call whenever you are free, so you could brief me on what to expect and where to host the code? then we could take it from there.

This is my communications email “databasemanager@acrymold.co.in”

I would appreciate if you could share yours as well so I may reach out to you.

@ShantanuIyengar
