L3-prep_text_for_RAG fails with HTTP response code: 403 Forbidden

Going through the notebook on Knowledge Graphs for RAG - DeepLearning.AI

Section “Populate the vector index” fails with error:

ClientError: {code: Neo.ClientError.Procedure.ProcedureCallFailed} {message: Failed to invoke function `genai.vector.encode`: Caused by: com.neo4j.genai.vector.MalformedGenAIResponseException: Unexpected HTTP response code: 403 Forbidden - {
    "error": {
        "message": "Project `proj_OXEC08aO6rKYJweAEj6Aae5D` does not have access to model `text-embedding-ada-002`",
        "type": "invalid_request_error",
        "param": null,
        "code": "model_not_found"
    }
}
}

I skipped that cell, hoping that the db would be prepopulated, and indeed the following queries work. I then go to the next section…

" Similarity search" section fails with error:

ClientError: {code: Neo.ClientError.Procedure.ProcedureCallFailed} {message: Failed to invoke function `genai.vector.encode`: Caused by: com.neo4j.genai.vector.MalformedGenAIResponseException: Unexpected HTTP response code: 403 Forbidden - {
    "error": {
        "message": "Project `proj_OXEC08aO6rKYJweAEj6Aae5D` does not have access to model `text-embedding-ada-002`",
        "type": "invalid_request_error",
        "param": null,
        "code": "model_not_found"
    }
}
}

@Mubsi

another short course have similar error.please look into this.

1 Like

This should be fixed. Let me know if it occurs still. Thanks.

1 Like

Thanks @Mubsi! I just tested running the sections that previously failed and they run fine now.

1 Like