Message: Failed to invoke function `genai.vector.encode`: Caused by: com.neo4j.genai.util.GenAIProcedureException: Not authorized to make API request; check your credentials

@sunil.kushwaha97
Thank you for the suggestion of creating embedding instead of “genai.vector.encode” method.
I think for this method you would need to use llm.embeddings.create

Hi @rohanazad94,
I have created my own method by using model (text-embedding-ada-002), you may see the code also as below snap

Thanks,
Sunil

1 Like

Hello @sunil.kushwaha97
Thank you very much for sharing your code.
Since I do not have Azure (got Google Cloud Platform), I am creating embedding locally from a csv file like below

image

1 Like