langchain
6b9f2668 - Add user_context to AmazonKendraRetriever (#8869)

Commit
2 years ago
Add user_context to AmazonKendraRetriever (#8869) ### Description Now, we can pass information like a JWT token using user_context: ```python self.retriever = AmazonKendraRetriever(index_id=kendraIndexId, user_context={"Token": jwt_token}) ``` - [x] `make lint` - [x] `make format` - [x] `make test` Also tested by pip installing in my own project, and it allows access through the token. ### Maintainers @rlancemartin, @eyurtsev ### My twitter handle [girlknowstech](https://twitter.com/girlknowstech)
Author
Parents
Loading