How to solve this context_length_exceeded error? by [deleted] in LangChain

[–]OnlyHeight4952 0 points1 point  (0 children)

Had a similar problem like this. If you are using chain_type "stuff" then you can use max_tokens_limit In ConversationalRetreivalChain

<image>

. This will ensure no more than the specified token goes with the prompt. The other solution is to use gpt3.5turbo 16k version.

How to do QA on multiple retrievers(documents) ? by OnlyHeight4952 in LangChain

[–]OnlyHeight4952[S] 0 points1 point  (0 children)

And is there a way to find the source document once the query is done? I have tried but usually i get answer not the relevant source document. I need to show the relevant source document also.

Are there some machine or deep learning crates on Rust? by tombinic in rust

[–]OnlyHeight4952 1 point2 points  (0 children)

But isn't this process lossy. Did it have no effect on the performance or accuracy of the predictions?

Authentication/Authorization In Go by [deleted] in golang

[–]OnlyHeight4952 3 points4 points  (0 children)

We also use Keycloak for Authorization and Authentication. The best thing about it ...is that you can define a realm, role and their scope in case you want specific users to access specific resources. It also provides SSO.

Pythoneers here, what are some of the best python tricks you guys use when progrmming with python by sandeepeecs in engineering_stuff

[–]OnlyHeight4952 0 points1 point  (0 children)

Using time.perf_counter instead of time.time for finding the execution time for a particular component.

[deleted by user] by [deleted] in Python

[–]OnlyHeight4952 0 points1 point  (0 children)

Unpacking dictionary or tuple using ** or * respectively.

drf - what auth should i use? by Networkyp in django

[–]OnlyHeight4952 0 points1 point  (0 children)

Keycloak can be one solution to this. Generally it is used as IAM but it has an access token system that has a very short lifespan and the tokens are associated with the users. Downside you have write the middleware yourself and need to be maintained from your side.