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
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.
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:
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
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.
The Stringify node from is actaully the native node:
selecting this from node editor
and getting this in console
Does it gives you same for every prompt? If you can share the prompt you add here.
So using the native node and the AI Generated node I get the same result
@Shams or @harini , any thoughts? are there curretnly any bugs?
Curious about the trim element in console
Hi @JSL, Thank you for sharing your workflow and these screenshots via support form, we'll take a look and update you on this.
thanks Gaurav