User Acces Control on Atlas Vector Search with Langchain

Thanks @Benjamin_Flast for the help !

Here is how my current index look :

{
  "fields": [
    {
      "numDimensions": 1536,
      "path": "embedding",
      "similarity": "cosine",
      "type": "vector"
    },
    {
      "path": "user_id",
      "type": "filter"
    }
  ]
}

So instead of “type”: “filter”, I should change it to “type”: “token” , is that what you mean ?