Generate Text completion using Gemini Ai: I need to write a prompt for invoice extraction and output should be in JSON format how i write?

Here i tried the some prompt i got the output like below text file
And i want to clear statswith ‘’‘JSON and endswith ‘’’. how can achieve using prompt

@Naveen_Kanike,

You can use UiPath GenAI Activities Activities - Activities

Thanks,
Ashok :slight_smile:

I used it but getting output as json format only but the thing is I getting text containing ‘’‘json and at last words after extraction ‘’’. Here I don’t want the letters like this where my bot fails

@Naveen_Kanike,

Sorry, I’m not getting your question. Would you be able share screenshots with currently getting and expected?

Thanks,
Ashok :slight_smile:

here i am getting the some text ‘’’ json how to remove this by using prompt itself

Ashok

do you understand the issue what iam asking

@Naveen_Kanike,

Sorry, still not getting.

can you see the text at beggining of the file in screen shot where mensioned ‘’'Json right i dont want those letters. how to to do this ashok

Ashok,

Do you understand now?

@Naveen_Kanike,

I think I got it. You are talking about this red highlighted.

If yes, better to remove it from response than telling the GEN AI to remove it. It would be easy through text manipulation like replacing ````json with “”`

Thanks,
Ashok :slight_smile:

Yes! You got it. How to remove iam trying it alot for the prompt but iam failing, can you please help on it ashok

Ashok,

could you please join google meet please iam waiting

Ashok,

Iam waiting for you in call please connect bro

bro,

what bro your are not connecting

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.