JSL
JSL10mo ago

The issue I am facing is that OpenAi

The issue I am facing is that OpenAi Chat is not liking the Javascript object that is returned by the Pinecone query result and I need to grab the text metadata to use in the OpenAi request
14 Replies
Gaurav Chadha
Gaurav Chadha10mo ago
Hi, As the OpenAI expects input in the form of string, you'll requre to convert the response received from Pinecone, JSON Object --> JSON String (with JSON Stringify node) --> Stringified result to pure string (logic can be created using AI). I'm attaching an example workflow which you can refer to modify accordingly.
JSL
JSL10mo ago
Hi Gaurav Thanks for the reply. I tried to use the Ai generated nodes but kept getting this erro after they were created: https://discord.com/channels/853498675484819476/1183323220561104906/1183323220561104906 Also jsut tried the JSON Stringify node:
JSL
JSL10mo ago
No description
JSL
JSL10mo ago
other nodes work fine like Supabase have cleared the cache for buildship and loaded the page again with same result tried in Chrome and Safari
Gaurav Chadha
Gaurav Chadha10mo ago
Does it gives this error everytime, for every logic you try to generate? Can you share the prompt here you are using to generate node in `` ? The workflow I've sent above has a generated node similar to this usecase.
JSL
JSL10mo ago
The Stringify node from is actaully the native node:
No description
JSL
JSL10mo ago
selecting this from node editor
No description
JSL
JSL10mo ago
and getting this in console
No description
JSL
JSL10mo ago
No description
Gaurav Chadha
Gaurav Chadha10mo ago
Does it gives you same for every prompt? If you can share the prompt you add here.
No description
JSL
JSL10mo ago
So using the native node and the AI Generated node I get the same result
No description
No description
No description
No description
No description
JSL
JSL10mo ago
@Shams or @harini , any thoughts? are there curretnly any bugs? Curious about the trim element in console
Gaurav Chadha
Gaurav Chadha10mo ago
Hi @JSL, Thank you for sharing your workflow and these screenshots via support form, we'll take a look and update you on this.
JSL
JSL10mo ago
thanks Gaurav