mirror of https://github.com/hwchase17/langchain
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)pull/8923/head
parent
6116cbf0de
commit
6b9f266837
Loading…
Reference in New Issue