-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] - Add support for AI21labs assistants #303
[ENH] - Add support for AI21labs assistants #303
Conversation
@pmeier The first draft of this PR is finished. I'm testing it now. Opinions and requests to modify are welcome |
I'm trying to test this using basic documents and prompts, but I keep getting an error like
I'm trying to debug this, including adding a I'm looking for ideas and input, please |
An educated guess is that streaming is not specified. I will test this hypothesis Edit: Simply adding the |
A later part of the same error gives
What's confusing to me is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @smokestacklightnin for the PR. This already looks pretty good. The issue you are facing has a simple resolution. I've suggested it below along two other minor things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there just one minor thing below. Apart from that, I'm unable to use the Jurassic2Mid
assistant. The server always returns a 500 / Internal Server error for me. Did it work for you? If so, let's wait for them to fix this so I get at least one clean run.
I get the same 500 http response code for |
It's also unclear to me why there's a new import error |
Are you saying you are also getting the 500 now or never got a proper response so far? If its the former, I say we wait a few days before we merge this and see if they figure it out on their side. No worries, this PR will make it into the
Well, |
The former |
In that case let's revisit this next week and see if they have fixed their server. |
I've tried again today and I'm still getting the 500 error. Since the release is still at least a week out I'm ok with waiting. However, also fine to just remove JurrassicMid and only add it again later. |
I'm mostly fine with either option. I tested JurassicUltra with a text file that reads
and then asked the system the question
to which the system responded
While this is true, it doesn't feel right that the information provided didn't come from the included documents, even though the system is only supposed to answer the questions from what's included. I double checked the documentation (this and this), and everything seems to be set up correctly in the code from this PR. What are your thoughts? |
In that case let's wait a little longer. If we get closer to release and still have no green light, we can always pull the trigger then.
Unfortunately, this is simply how LLMs work. There is no way to force them into any behavior. The system prompt just gives an instruction to it. Whether or not this is respected is a completely different story. IMO this is a quality metric and it seems that the Jurassic model is not on par with the other LLMs that we have built in. Unless it actually can't answer a question even if given the right context, I still think it makes sense to include it. |
80c1169
to
0a813b6
Compare
The 500 internal service error is still present from AI21labs, but I've rebased this branch to get rid of the conflict in the FAQ documentation file |
Up to you how you want to handle this: keep waiting for them to fix their server or remove the "mid" model from the PR and we can merge as is. |
I'd love to have another PR merge on the books. If you don't see any reason not to comment out the Mid model, I'm happy to go ahead and do so to make this PR ready to merge |
Please leave a comment on the "mid" model on why this is commented out linking to this thread. |
I added a comment. I'll add a link to this thread |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @smokestacklightnin!
This PR addresses Issue #226 by adding an assistant for AI21 Labs
Please leave opinions and change requests in comments